[JIRA] (JENKINS-55151) GitHub Branch Source Plugin: Failed branch indexing

5 views
Skip to first unread message

lividfaust@gmail.com (JIRA)

unread,
Dec 12, 2018, 9:01:02 AM12/12/18
to jenkinsc...@googlegroups.com
Alexandr Semak created an issue
 
Jenkins / Improvement JENKINS-55151
GitHub Branch Source Plugin: Failed branch indexing
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: github-branch-source-plugin
Created: 2018-12-12 14:00
Environment: Jenkins ver. 2.121.3
GitHub Branch Source 2.4.0
Labels: jenkins github github-branch-source-plugin
Priority: Critical Critical
Reporter: Alexandr Semak

GitHub Branch Source had already been working but now We can't indexing repo:

[Wed Dec 12 13:23:19 UTC 2018] Starting branch indexing... 13:23:19 Connecting to https://api.github.com using twcsysadmins/****** (twcsysadmins github api token) ERROR: [Wed Dec 12 13:23:19 UTC 2018] Could not update folder level actions from source 12ca09af-4dfe-4959-8266-0b82428ee176 java.lang.ArrayIndexOutOfBoundsException: 1 at org.kohsuke.github.GitHub.getRepository(GitHub.java:474) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieveActions(GitHubSCMSource.java:1667) at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:590) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) [Wed Dec 12 13:23:19 UTC 2018] Finished branch indexing. Indexing took 0 ms FATAL: Failed to recompute children of wxu-armada-cluster-secret java.lang.ArrayIndexOutOfBoundsException: 1 at org.kohsuke.github.GitHub.getRepository(GitHub.java:474) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieveActions(GitHubSCMSource.java:1667) at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:590) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE

GitHub Branch Source have any limits ?
Because we have quite big organization.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

lividfaust@gmail.com (JIRA)

unread,
Dec 12, 2018, 9:07:01 AM12/12/18
to jenkinsc...@googlegroups.com
Alexandr Semak updated an issue
Change By: Alexandr Semak
GitHub Branch Source had already been working but now We can't indexing repo:
{code:java}

[Wed Dec 12 13:23:19 UTC 2018] Starting branch indexing... 13:23:19 Connecting to https://api.github.com using twcsysadmins/****** (twcsysadmins github api token)
ERROR: [Wed Dec 12 13:23:19 UTC 2018] Could not update folder level actions from source 12ca09af-4dfe-4959-8266-0b82428ee176 java.lang.ArrayIndexOutOfBoundsException: 1 at org.kohsuke.github.GitHub.getRepository(GitHub.java:474) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieveActions(GitHubSCMSource.java:1667) at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:590) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
[Wed Dec 12 13:23:19 UTC 2018] Finished branch indexing. Indexing took 0 ms FATAL: Failed to recompute children of wxu-armada-cluster-secret java.lang.ArrayIndexOutOfBoundsException: 1 at org.kohsuke.github.GitHub.getRepository(GitHub.java:474) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieveActions(GitHubSCMSource.java:1667) at jenkins.scm.api.SCMSource.fetchActions(SCMSource.java:765) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:590) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1024) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE{code}


GitHub Branch Source have any limits ?
Because we have quite big organization.

owen@nerdnetworks.org (JIRA)

unread,
Nov 24, 2019, 11:36:03 PM11/24/19
to jenkinsc...@googlegroups.com
Owen Mehegan updated an issue
Change By: Owen Mehegan
Component/s: github-api-plugin
Component/s: github-branch-source-plugin
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

owen@nerdnetworks.org (JIRA)

unread,
Nov 25, 2019, 7:23:03 PM11/25/19
to jenkinsc...@googlegroups.com
Owen Mehegan commented on Improvement JENKINS-55151
 
Re: GitHub Branch Source Plugin: Failed branch indexing

A customer encountered this issue yesterday. After examining the code (https://github.com/github-api/github-api/blob/github-api-1.95/src/main/java/org/kohsuke/github/GitHub.java#L475) it seems that we are trying to do some string parsing on a response from the GitHub API, and the response is not in the expected format, so the parsing fails ungracefully. In the case of my customer, it turned out that the credentials they were using did not have the appropriate access in GitHub to perform the required operation. They had to enable/authorize this credential/user for SSO in GitHub in order to resolve the issue.

Perhaps the plugin could be improved with some exception handling here.

bitwiseman@gmail.com (JIRA)

unread,
Nov 26, 2019, 3:29:02 PM11/26/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages