-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Ubuntu 16.04. Reproduced on two different installations of Jenkins.
I am using a pipeline script generally taken from https://github.com/JFrogDev/project-examples/tree/master/jenkins-pipeline-examples/maven-example. On single pipeline project everything goes well. When I try to use the same Jenkinsfile on multibranch pipeline (GitHub branch source) I get following errors
java.io.IOException: Process working directory '/var/lib/jenkins/jobs/..../branches/master/workspace' doesn't exist!
at hudson.Proc$LocalProc.<init>(Proc.java:247)
at hudson.Proc$LocalProc.<init>(Proc.java:218)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:930)
at hudson.Launcher$ProcStarter.start(Launcher.java:450)
at hudson.Launcher$ProcStarter.join(Launcher.java:461)
at org.jfrog.hudson.maven3.Maven3Builder.RunMaven(Maven3Builder.java:118)
at org.jfrog.hudson.maven3.Maven3Builder.perform(Maven3Builder.java:113)
at org.jfrog.hudson.pipeline.steps.ArtifactoryMavenBuild$Execution.run(ArtifactoryMavenBuild.java:105)
at org.jfrog.hudson.pipeline.steps.ArtifactoryMavenBuild$Execution.run(ArtifactoryMavenBuild.java:61)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:273)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
In case /master/workspace existed before (e. g. it was created with previous version of Jenkinsfile), then I get errors when creating branches:
java.io.IOException: Process working directory '/var/lib/jenkins/workspace/...._fix-INNYN62US2OQOBRNZOIIV66P4PVYALQ6AASTQYBHRXAZTWXI6DJA' doesn't exist!