[JIRA] (JENKINS-44360) '%' in branch name causes Windows multi-branch job failures

13 views
Skip to first unread message

varun.devireddy@moodys.com (JIRA)

unread,
Apr 3, 2018, 12:15:04 AM4/3/18
to jenkinsc...@googlegroups.com
Varun Reddy commented on Bug JENKINS-44360
 
Re: '%' in branch name causes Windows multi-branch job failures

is there a fix for this issue? Even after adding below we are still seeing issues with the workspace name. I am having this issue on Windows slave machines. Running .net project with msbuild commandline.

-Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=0
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

stephen.alan.connolly@gmail.com (JIRA)

unread,
Oct 31, 2018, 6:00:19 AM10/31/18
to jenkinsc...@googlegroups.com
Stephen Connolly assigned an issue to Unassigned
 

Removing myself as assignee. My current work assignments do not provide sufficient bandwidth to review these issues and in the majority of cases I am only assigned by virtue of being the default assignee. For the credentials-api and scm-api related plugins I have permission to allocate time reviewing changes to these APIs themselves to ensure these APIs remain cohesive, but that can be handled through PR reviews rather than assigning issues in JIRA

Jenkins / Bug JENKINS-44360
Change By: Stephen Connolly
Assignee: Stephen Connolly
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
May 29, 2019, 7:45:05 PM5/29/19
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Cannot Reproduce
 

Likely obsolete as of JENKINS-2111.

Change By: Jesse Glick
Status: Open Resolved
Resolution: Cannot Reproduce

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 8:00:03 PM5/29/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Resolution: Cannot Reproduce
Status: Resolved In Review

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 8:07:02 PM5/29/19
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-44360
 
Re: '%' in branch name causes Windows multi-branch job failures

I continue to see job failures when using a branch name containing '%' with either a GitHub organization folder or a GitHub branch source. I don't see those job failures when I use Git as a branch source, only if I use GitHub as the branch source or a GitHub organization folder. I haven't checked Bitbucket branch source or Gitea to see if the issue is specific to GitHub or is connected to something unrelated to the branch API plugin.

The failing job writes the following surprising log file into build/1/log:

Connecting to https://api.github.com using MarkEWaite/****** (MarkEWaite github username/password)
java.io.FileNotFoundException: https://api.github.com/repos/MarkEWaite/jenkins-bugs/git/refs/heads/has-percent-%-JENKINS-44360
        at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:243)
        at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
        at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
        at org.kohsuke.github.Requester.parse(Requester.java:625)
        at org.kohsuke.github.Requester.parse(Requester.java:607)
        at org.kohsuke.github.Requester._to(Requester.java:285)
Caused: org.kohsuke.github.GHFileNotFoundException:
...  Long content that looks like an HTML file ...
        at org.kohsuke.github.Requester.handleApiError(Requester.java:699)
        at org.kohsuke.github.Requester._to(Requester.java:306)
        at org.kohsuke.github.Requester.to(Requester.java:247)
        at org.kohsuke.github.GHRepository.getRef(GHRepository.java:891)
        at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1531)
        at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
        at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:98)
        at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 8:07:06 PM5/29/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Change By: Mark Waite
Attachment: JENKINS-44360.log

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 8:08:04 PM5/29/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-44360
I continue to see job failures when using a branch name containing '%' with either a GitHub organization folder or a GitHub branch source.  I don't see those job failures when I use Git as a branch source, only if I use GitHub as the branch source or a GitHub organization folder.  I haven't checked Bitbucket branch source or Gitea to see if the issue is specific to GitHub or is connected to something unrelated to the branch API plugin.

The failing job writes the following surprising log file into {{build/1/log}}:

{noformat}

Connecting to https://api.github.com using MarkEWaite/****** (MarkEWaite github username/password)
java.io.FileNotFoundException: https://api.github.com/repos/MarkEWaite/jenkins-bugs/git/refs/heads/has-percent-%-JENKINS-44360
        at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:243)
        at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
        at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
        at org.kohsuke.github.Requester.parse(Requester.java:625)
        at org.kohsuke.github.Requester.parse(Requester.java:607)
        at org.kohsuke.github.Requester._to(Requester.java:285)
Caused: org.kohsuke.github.GHFileNotFoundException:
...  Long content that looks like an HTML file ...
        at org.kohsuke.github.Requester.handleApiError(Requester.java:699)
        at org.kohsuke.github.Requester._to(Requester.java:306)
        at org.kohsuke.github.Requester.to(Requester.java:247)
        at org.kohsuke.github.GHRepository.getRef(GHRepository.java:891)
        at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1531)
        at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
        at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:98)
        at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
{noformat}

I've uploaded {{build/1/log}} as  [^JENKINS-44360.log]

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 8:17:03 PM5/29/19
to jenkinsc...@googlegroups.com


The specific branch that shows the failure is in my [jenkins-bugs GitHub repository|https://github.com/MarkEWaite/jenkins-bugs/tree/has-percent-%25-JENKINS-44360].

mark.earl.waite@gmail.com (JIRA)

unread,
May 29, 2019, 8:19:04 PM5/29/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages