Jenkins Error Diagnosis & Resolution
Budget: ₹600 – ₹1,500 INR
I'm encountering issues with Jenkins. The error message is detailed below. Please assist.
Please note that I am unsure what changes were made before the error occurred. The affected components are also listed in the error message. Having a professional who can dissect this situation and fix the problem is crucial.
Started by user Sonam Burbure
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/trial
The recommended git tool is: NONE
using credential 4ab2110e-0891-4db5-bd2c-093d12a3de43
Cloning the remote Git repository
Cloning repository https://github.com/Sonamburbure/Eclipse-project.git
> git init /var/lib/jenkins/workspace/trial # timeout=10
Fetching upstream changes from https://github.com/Sonamburbure/Eclipse-project.git
> git --version # timeout=10
> git --version # 'git version 2.34.1'
using GIT_ASKPASS to set credentials mygithub
> git fetch --tags --force --progress -- https://github.com/Sonamburbure/Eclipse-project.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/Sonamburbure/Eclipse-project.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision b29ac757d0e6a8300e474bf55db187a789c04fc9 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f b29ac757d0e6a8300e474bf55db187a789c04fc9 # timeout=10
Commit message: "updatedMenu"
First time build. Skipping changelog.
[trial] $ mvn clean test
FATAL: command execution failed
java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
Caused: java.io.IOException: Cannot run program "mvn" (in directory "/var/lib/jenkins/workspace/trial"): error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at hudson.Proc$LocalProc.<init>(Proc.java:252)
at hudson.Proc$LocalProc.<init>(Proc.java:221)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:994)
at hudson.Launcher$ProcStarter.start(Launcher.java:506)
at hudson.Launcher$ProcStarter.join(Launcher.java:517)
at hudson.tasks.Maven.perform(Maven.java:368)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:164)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:527)
at hudson.model.Run.execute(Run.java:1831)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:445)
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Finished: FAILURE
Please note that I am unsure what changes were made before the error occurred. The affected components are also listed in the error message. Having a professional who can dissect this situation and fix the problem is crucial.
Started by user Sonam Burbure
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/trial
The recommended git tool is: NONE
using credential 4ab2110e-0891-4db5-bd2c-093d12a3de43
Cloning the remote Git repository
Cloning repository https://github.com/Sonamburbure/Eclipse-project.git
> git init /var/lib/jenkins/workspace/trial # timeout=10
Fetching upstream changes from https://github.com/Sonamburbure/Eclipse-project.git
> git --version # timeout=10
> git --version # 'git version 2.34.1'
using GIT_ASKPASS to set credentials mygithub
> git fetch --tags --force --progress -- https://github.com/Sonamburbure/Eclipse-project.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/Sonamburbure/Eclipse-project.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision b29ac757d0e6a8300e474bf55db187a789c04fc9 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f b29ac757d0e6a8300e474bf55db187a789c04fc9 # timeout=10
Commit message: "updatedMenu"
First time build. Skipping changelog.
[trial] $ mvn clean test
FATAL: command execution failed
java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
Caused: java.io.IOException: Cannot run program "mvn" (in directory "/var/lib/jenkins/workspace/trial"): error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at hudson.Proc$LocalProc.<init>(Proc.java:252)
at hudson.Proc$LocalProc.<init>(Proc.java:221)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:994)
at hudson.Launcher$ProcStarter.start(Launcher.java:506)
at hudson.Launcher$ProcStarter.join(Launcher.java:517)
at hudson.tasks.Maven.perform(Maven.java:368)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:164)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:527)
at hudson.model.Run.execute(Run.java:1831)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:445)
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Finished: FAILURE