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

Slashes in branch names cause 'bat' workflow task to hang

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As first reported in JENKINS-30744 windows 'bat' workflow task hangs on the encoding of git branch names when these branches contain special characters (tested with gitflow naming convention that has '/' in the branch name).

      The encoded path seems to create problems on windows when using 'bat'.
      Any branch that has a slash in it for example ('feature/myfeature') will get an encoded path on windows like <workspace_path>/feature%2Fmyfeature@script and <workspace_path>/feature%2Fmyfeature.
      When I apply the following workflow in a multibranch job in a root file 'Jenkinsfile', Jenkins hangs forever on the bat command

      node {
          stage 'Checkout'
          checkout scm
          stage 'Build'
          bat "echo 'test'"
      }
      

      When I add this same script on the 'master' branch everything is fine.

        Attachments

          Issue Links

            Activity

            jajansen Jan Arend Jansen created issue -
            jajansen Jan Arend Jansen made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-30744 [ JENKINS-30744 ]
            jajansen Jan Arend Jansen made changes -
            Description As first reported in JENKINS-30744 windows 'bat' workflow task hangs on the encoding of git branch names when these branches contain special characters (tested with gitflow naming convention that has '/' in the branch name).

            The encoded path seems to create problems on windows when using 'bat'.
            Any branch that has a slash in it for example ('feature/myfeature') will get an encoded path on windows like <workspace_path>/feature%2Fmyfeature@script and <workspace_path>/feature%2Fmyfeature.
            When I apply the following workflow in a multibranch job in a root file 'Jenkinsfile', Jenkins hangs forever on the bat command
            node {
                stage 'Checkout'
                checkout scm
                stage 'Build'
                bat "echo 'test'"
            }
            When I add this same script on the 'master' branch everything is fine.

            As first reported in JENKINS-30744 windows 'bat' workflow task hangs on the encoding of git branch names when these branches contain special characters (tested with gitflow naming convention that has '/' in the branch name).

            The encoded path seems to create problems on windows when using 'bat'.
            Any branch that has a slash in it for example ('feature/myfeature') will get an encoded path on windows like <workspace_path>/feature%2Fmyfeature@script and <workspace_path>/feature%2Fmyfeature.
            When I apply the following workflow in a multibranch job in a root file 'Jenkinsfile', Jenkins hangs forever on the bat command
            {code}
            node {
                stage 'Checkout'
                checkout scm
                stage 'Build'
                bat "echo 'test'"
            }
            {code|
            When I add this same script on the 'master' branch everything is fine.

            jajansen Jan Arend Jansen made changes -
            Description As first reported in JENKINS-30744 windows 'bat' workflow task hangs on the encoding of git branch names when these branches contain special characters (tested with gitflow naming convention that has '/' in the branch name).

            The encoded path seems to create problems on windows when using 'bat'.
            Any branch that has a slash in it for example ('feature/myfeature') will get an encoded path on windows like <workspace_path>/feature%2Fmyfeature@script and <workspace_path>/feature%2Fmyfeature.
            When I apply the following workflow in a multibranch job in a root file 'Jenkinsfile', Jenkins hangs forever on the bat command
            {code}
            node {
                stage 'Checkout'
                checkout scm
                stage 'Build'
                bat "echo 'test'"
            }
            {code|
            When I add this same script on the 'master' branch everything is fine.

            As first reported in JENKINS-30744 windows 'bat' workflow task hangs on the encoding of git branch names when these branches contain special characters (tested with gitflow naming convention that has '/' in the branch name).

            The encoded path seems to create problems on windows when using 'bat'.
            Any branch that has a slash in it for example ('feature/myfeature') will get an encoded path on windows like <workspace_path>/feature%2Fmyfeature@script and <workspace_path>/feature%2Fmyfeature.
            When I apply the following workflow in a multibranch job in a root file 'Jenkinsfile', Jenkins hangs forever on the bat command
            {code}
            node {
                stage 'Checkout'
                checkout scm
                stage 'Build'
                bat "echo 'test'"
            }
            {code}
            When I add this same script on the 'master' branch everything is fine.

            jglick Jesse Glick made changes -
            Labels workflow multibranch workflow
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 16 (Web Link)" [ 14112 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ] Arthur Schreiber [ arthurschreiber ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            andne Andy Neebel made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Assignee Arthur Schreiber [ arthurschreiber ] Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 168363 ] JNJira + In-Review [ 198413 ]
            abayer Andrew Bayer made changes -
            Labels multibranch workflow multibranch pipeline workflow
            abayer Andrew Bayer made changes -
            Labels multibranch pipeline workflow multibranch pipeline
            bokc bokc made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jajansen Jan Arend Jansen
              • Votes:
                5 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: