-
Improvement
-
Resolution: Fixed
-
Minor
-
None
Steps to reproduce
- Create a pipeline job
- Add a build parameter to specify the URL of a git repository, ${gitUrl}
- Add a build parameter to specify the build script to execute, ${script}
- Within the Pipeline section
- Select "Pipeline script from SCM"
- Select "Git" for the SCM
- Enter ${gitUrl} for the Repository URL
- Enter the branch to build
- Enter ${script} for the "Script Path"
Perform a "Build with Parameters" and enter values for the gitUrl and script values and select Build. The following error is reported
Mar 16, 2017 2:43:53 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish INFO: Worker #4 completed: FAILURE Mar 16, 2017 2:43:53 PM org.jenkinsci.plugins.workflow.flow.FlowExecutionList unregister WARNING: Owner[Worker/4:Worker #4] was not in the list to begin with: [] Mar 16, 2017 2:43:53 PM io.jenkins.blueocean.events.PipelineEventListener$1 run SEVERE: Unexpected error publishing pipeline FlowNode event. java.util.concurrent.ExecutionException: hudson.AbortException: /var/jenkins_home/workspace/Worker@script/${script} not found at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289) at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:276) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:111) at io.jenkins.blueocean.events.PipelineEventListener$1.run(PipelineEventListener.java:226) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: hudson.AbortException: /var/jenkins_home/workspace/Worker@script/${script} not found at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:136) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:59) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:232) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404)
If ${script} is set to the location of a script, the job starts successfully.
- duplicates
-
JENKINS-43040 Pipeline script from SCM does not resolve project parameter used in branch specifier
- Resolved
- is duplicated by
-
JENKINS-44073 Can't use environment variables in jenkinsfile script path for pipelines from SCM
- Resolved
-
JENKINS-38439 CPPScmFlowDefinition with the ability to use the job name in the scm path
- Resolved
- relates to
-
JENKINS-42971 Pipeline script from SCM does not expand build parameters/env variables for lightweight checkouts
- Resolved
-
JENKINS-28447 CpsScmFlowDefinition does not resolve variables
- Resolved
- links to