[JIRA] (JENKINS-58172) Deleting & remaking a tag makes Jenkins stop building the tag forever with GitHub Branch Source

19 views
Skip to first unread message

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

unread,
Jun 24, 2019, 5:57:01 PM6/24/19
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Jenkins / Bug JENKINS-58172
Deleting & remaking a tag makes Jenkins stop building the tag forever with GitHub Branch Source
Change By: Mark Waite
Summary: Deleting a & remaking a tag makes Jenkins stop building the tag forever with GitHub Branch Source
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

bitwiseman@gmail.com (JIRA)

unread,
Jun 27, 2019, 11:50:02 AM6/27/19
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Jun 27, 2019, 11:50:03 AM6/27/19
to jenkinsc...@googlegroups.com

ethanjdiamond@gmail.com (JIRA)

unread,
Jun 27, 2019, 2:05:03 PM6/27/19
to jenkinsc...@googlegroups.com
Ethan Diamond updated an issue
Change By: Ethan Diamond
*Issue:*
 
When I click Jenkins reports a tag that exists as "Not Found" and failing the build with this message:
 
12:52:41 Branch indexing
19:52:41 [2019-06-24T19:52:41.964Z] Connecting to [https://api.github.com|https://api.github.com/] using dev-rafabuildadmin/****** (github dev-rafabuildadmin user (required to publish build/deploy status))
12:52:42 java.io.FileNotFoundException: [https://api.github.com/repos/rafastealth/ios-patient-client/git/refs/tags/0.0.4]
12:52:42     at com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:243)
12:52:42     at com.squareup.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
12:52:42     at com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
12:52:42     at org.kohsuke.github.Requester.parse(Requester.java:625)
12:52:42     at org.kohsuke.github.Requester.parse(Requester.java:607)
12:52:42     at org.kohsuke.github.Requester._to(Requester.java:285)
12:52:42 Caused: org.kohsuke.github.GHFileNotFoundException: \{"message":"Not Found","documentation_url":"https://developer.github.com/v3/git/refs/#get-a-reference"}
12:52:42     at org.kohsuke.github.Requester.handleApiError(Requester.java:699)
12:52:42     at org.kohsuke.github.Requester._to(Requester.java:306)
12:52:42     at org.kohsuke.github.Requester.to(Requester.java:247)
12:52:42     at org.kohsuke.github.GHRepository.getRef(GHRepository.java:891)
12:52:42     at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1521)
12:52:42     at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
12:52:42     at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:98)
12:52:42     at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
12:52:42     at hudson.model.ResourceController.execute(ResourceController.java:97)
12:52:42    at hudson.model.Executor.run(Executor.java:429)
12:52:42 Finished: FAILURE
 
See "github_tag.png" for proof the tag does indeed exist. I've tried re-indexing, but the issue never resolves.
 
*Repro Steps:*
 
- Set up tags to build with your repo (see tag_setup.png)
- Create a tag (say, 0.0.4) in your git repo and push it up to origin. This will cause it to auto build.
- In git, delete the tag and push that deletion up to Github.
 
- In
Jenkins, in the job made by the tag, click "Build Now" - It should fail to find the tag
- In
git, tag a new commit with the same tag name (0.0.4) as above and push it up to Github.
- In Jenkins, in the job made by the tag, click "Build Now"

-   Note that Jenkins still can't find the tag even though it exists.
 
 

ethanjdiamond@gmail.com (JIRA)

unread,
Jun 27, 2019, 2:07:02 PM6/27/19
to jenkinsc...@googlegroups.com

ethanjdiamond@gmail.com (JIRA)

unread,
Jun 27, 2019, 2:08:05 PM6/27/19
to jenkinsc...@googlegroups.com
Ethan Diamond commented on Bug JENKINS-58172
 
Re: Deleting & remaking a tag makes Jenkins stop building the tag forever with GitHub Branch Source

Thanks for the quick turnaround Liam!

Unfortunately it doesn't seem to have fixed my problem. I've attached images proving that the plugin was installed correctly and the error message when I try to build. It looks like the API is reporting the tag as "Not Found", which is what it does when you try to hit that API and are unauthenticated. I think the auth might be failing. For example, if you go to: https://api.github.com/repos/rafastealth/ios-patient-client/git/refs/tags/0.0.12 you'll see it's reporting the same not found message and it's because you don't have access.

ethanjdiamond@gmail.com (JIRA)

unread,
Jun 27, 2019, 2:08:05 PM6/27/19
to jenkinsc...@googlegroups.com

ethanjdiamond@gmail.com (JIRA)

unread,
Jul 12, 2019, 9:33:02 PM7/12/19
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Jul 16, 2019, 11:54:02 AM7/16/19
to jenkinsc...@googlegroups.com

Ethan Diamond
Unfortunately, "Not found" is the result reported by many different conditions, so it is not always clear what is going on.
Could you try reproducing this on a non-private repo? That would tell us if this is an auth issue.

bitwiseman@gmail.com (JIRA)

unread,
Feb 10, 2020, 7:39:04 PM2/10/20
to jenkinsc...@googlegroups.com

Ethan Diamond
I think we might have fixed this in v2.6.0. This is likely another example of JENKINS-54126. Give the new version a try.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

bitwiseman@gmail.com (JIRA)

unread,
Feb 10, 2020, 7:40:03 PM2/10/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages