-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Critical
-
Component/s: pipeline
-
Environment:Jenkins 2.277.4
In pipe line jobs, if the name of the job has an apostrophe in it, and a sh step is executed, the job will hang for awhile then eventually fail. This occurs with regular sh steps and other sh backed steps like the docker plugin steps.
Â
Example Job :
Sh'BreaksJob
Â
Script:
Â
pipeline {
 agent any
 stages {
  stage('Hello') {
   steps {
     sh 'echo "hello world"'
   }
  }
 }
}
Â
Â
Output
Â
Running in Durability level: MAX_SURVIVABILITY[Pipeline] Start of Pipeline[Pipeline] nodeRunning on Jenkins in /var/lib/jenkins/workspace/Testing/Sh'BreaksJob[Pipeline] {[Pipeline] stage[Pipeline]
[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: script returned exit code -2
Finished: FAILURE
Â