Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65759

Apostrohe in Job name causes sh based steps to hang

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      Jenkins 2.277.4
    • Similar Issues:

      Description

      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]

      { (Hello)[Pipeline] shprocess apparently never started in /var/lib/jenkins/workspace/Testing/Sh'BreaksJob@tmp/durable-91bcd577 (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)[Pipeline] }

      [Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: script returned exit code -2
      Finished: FAILURE
       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jonl_percsol Jonathon Lamon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: