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

'%' in branch name causes GitHub multi-branch job failures

      A '%' character in a branch name breaks the GitHub API calls on a git repository if the job performing the clone is generated by GitHub Organization Folder plugin (windows or Linux) or the GitHub branch source (windows or Linux).

      Steps to duplicate the problem:

      1. Define a GitHub multibranch PIpeline job referencing the MarkEWaite/jenkins-bugs repository (or a GitHub Organization Folders job which references the GitHub organization MarkEWaite, looking only at the repository jenkins-bugs)
      2. Scan the repository, watch the jobs run
      3. Open the has-percent-%-JENKINS-44360 job and confirm it failed to clone

      Steps to show the same branch working with a multibranch pipeline:

      1. Define a multi-branch pipeline job using the MarkEWaite/jenkins-bugs github repo using Git as the branch source rather than GitHub
      2. Scan the repository, watch the jobs run
      3. Open the has-percent-%-JENKINS-44360 job and confirm it cloned successfully

      The issue seems to require:

      • GitHub Organization Folders or GitHub multibranch
      • '%' in the branch name on the repository

          [JENKINS-44360] '%' in branch name causes GitHub multi-branch job failures

          Mark Waite created issue -
          Mark Waite made changes -
          Summary Original: '%' in branch name of GitHub Organization Folders causes strange job Windows failure New: '%' in branch name of GitHub Organization Folders repository causes job failure
          Mark Waite made changes -
          Description Original: A '%' character in a branch name breaks clone on a git repository if the job performing the clone is generated by GitHub Organization Folder plugin. The same character in the same branch does not break clone with a multi-branch pipeline automatically defined job.

          Steps to duplicate the problem:

          # Define a GitHub Organization Folders job which references the GitHub organization MarkEWaite, looking only at the repository jenkins-bugs
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44041 job and confirm it failed to clone

          Steps to show the same branch working with a multibranch pipeline:

          # Define a multi-branch pipeline job using the MarkEWaite/jenkins-bugs github repo
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44041 job and confirm it cloned successfully

          The issue seems to require:
          * GitHub Organization Folders
          * '%' in the branch name on the repository
          New: A '%' character in a branch name breaks clone on a git repository if the job performing the clone is generated by GitHub Organization Folder plugin. The same character in the same branch does not break clone with a multi-branch pipeline automatically defined job.

          Steps to duplicate the problem:

          # Define a GitHub Organization Folders job which references the GitHub organization MarkEWaite, looking only at the repository jenkins-bugs
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44360 job and confirm it failed to clone

          Steps to show the same branch working with a multibranch pipeline:

          # Define a multi-branch pipeline job using the MarkEWaite/jenkins-bugs github repo
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44360 job and confirm it cloned successfully

          The issue seems to require:
          * GitHub Organization Folders
          * '%' in the branch name on the repository
          Mark Waite made changes -
          Summary Original: '%' in branch name of GitHub Organization Folders repository causes job failure New: '%' in branch name causes Windows multi-branch job failures
          Mark Waite made changes -
          Component/s New: workflow-multibranch-plugin [ 21465 ]
          Mark Waite made changes -
          Description Original: A '%' character in a branch name breaks clone on a git repository if the job performing the clone is generated by GitHub Organization Folder plugin. The same character in the same branch does not break clone with a multi-branch pipeline automatically defined job.

          Steps to duplicate the problem:

          # Define a GitHub Organization Folders job which references the GitHub organization MarkEWaite, looking only at the repository jenkins-bugs
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44360 job and confirm it failed to clone

          Steps to show the same branch working with a multibranch pipeline:

          # Define a multi-branch pipeline job using the MarkEWaite/jenkins-bugs github repo
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44360 job and confirm it cloned successfully

          The issue seems to require:
          * GitHub Organization Folders
          * '%' in the branch name on the repository
          New: A '%' character in a branch name breaks clone on a git repository if the job performing the clone is generated by GitHub Organization Folder plugin (windows or Linux) or the multi-branch plugin (windows master or agent only). The same character in the same branch does not break clone with a multi-branch pipeline automatically defined job on Linux.

          Steps to duplicate the problem:

          # Define a GitHub Organization Folders job which references the GitHub organization MarkEWaite, looking only at the repository jenkins-bugs
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44360 job and confirm it failed to clone

          Steps to show the same branch working with a multibranch pipeline:

          # Define a multi-branch pipeline job using the MarkEWaite/jenkins-bugs github repo
          # Scan the repository, watch the jobs run
          # Open the has-percent-%-JENKINS-44360 job and confirm it cloned successfully

          The issue seems to require:
          * GitHub Organization Folders
          * '%' in the branch name on the repository
          Jesse Glick made changes -
          Component/s New: branch-api-plugin [ 18621 ]
          Component/s Original: github-organization-folder-plugin [ 21427 ]
          Component/s Original: workflow-multibranch-plugin [ 21465 ]
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Stephen Connolly [ stephenconnolly ]
          Jesse Glick made changes -
          Link New: This issue blocks JENKINS-34564 [ JENKINS-34564 ]
          Mark Waite made changes -
          Attachment New: Jenkins-System-Information.pdf [ 38199 ]
          Alexandre Aubert made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]
          Mark Waite made changes -
          Priority Original: Critical [ 2 ] New: Minor [ 4 ]

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: