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

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

      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.

          [JENKINS-32701] Slashes in branch names cause 'bat' workflow task to hang

          Jan Arend Jansen created issue -
          Jan Arend Jansen made changes -
          Link New: This issue is related to JENKINS-30744 [ JENKINS-30744 ]
          Jan Arend Jansen made changes -
          Description Original: 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.

          New: 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.

          Jan Arend Jansen made changes -
          Description Original: 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.

          New: 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.

          Jesse Glick made changes -
          Labels Original: workflow New: multibranch workflow
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 16 (Web Link)" [ 14112 ]
          Jesse Glick made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Arthur Schreiber [ arthurschreiber ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Andy Neebel made changes -
          Assignee Original: Arthur Schreiber [ arthurschreiber ] New: Jesse Glick [ jglick ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: