I have a Jenkinsfile/pipeline script where I'm accessing a passed parameter.

When the code is pasted into the GUI and run, the value is resolved fine. 
When the same code is pasted into a file, pushed into SCM and then accessed 
by the job, it fails to resolve the value.

Example line:

sh "cd out; zip -r -FS ${params.BUILD_TARGET}.zip ${params.BUILD_TARGET}"

Output from "Pipeline Script"

+ zip -r -FS mytarget.zip mytarget

Output from "Pipeline Script from SCM"

+ zip -r -FS null.zip null


Is there an inconsistency in interpretation/execution, or am I just doing 
something wrong?


Thanks,


Tim

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/467c3a93-4092-4a15-8e7f-24fc11f8157b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to