-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.60.1 on Linux 64 bit
Using a backtick in the Job name does not work together with the sh command in a pipeline.
E.g. a pipeline job with the name "Developer Test" and the following pipeline script
node{
sh 'echo "hello world"'
}
will print "hello world".
Changing the name of the Job to "Developer's Test" (or any other name with a single backtick) breaks the build and fails with "ERROR: script returned exit code -2".
I would expect a more expressive error message in the pipeline or a check to forbid such characters in the job name.
[JENKINS-46980] Jobname with single quote breaks pipeline sh command
Component/s | New: pipeline [ 21692 ] |
Component/s | New: workflow-durable-task-step-plugin [ 21715 ] | |
Component/s | Original: core [ 15593 ] | |
Component/s | Original: pipeline [ 21692 ] |
Summary | Original: Jobname with backtick breaks pipeline sh command | New: Jobname with single quote breaks pipeline sh command |