A '%' character in a branch name breaks clone 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 multi- GitHubbranch plugin source (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 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) # 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 using Git as the branch source rather than GitHub # 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 or GitHub multibranch * '%' in the branch name on the repository
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 master or agent only Linux).
Steps to duplicate the problem:
# 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) # 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 using Git as the branch source rather than GitHub # 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 or GitHub multibranch * '%' in the branch name on the repository
Thanks @jglick! I took too simple approach and chose the bug state as one of the proposed in the flow for next state, rather than setting it to the correct state of Open. State has been corrected and reassigned to github-branch-source-plugin.
Thanks @ [~jglick]! I took too simple approach and chose the bug state as one of the proposed in the flow for next state, rather than setting it to the correct state of *Open*. State has been corrected and reassigned to github-branch-source-plugin.
Thanks [~jglick]! I took too simple approach and chose the bug state status as one of the proposed in the flow for next state status, rather than setting it to the correct state of *Open*. State Status has been corrected and reassigned to github-branch-source-plugin.