github-api
github-api copied to clipboard
Could not fetch branches from source
Describe the bug Scan Repository Now fails branch
Checking branch [release/v1.9.0.0](repo-name/branch-name)
‘jenkins/Jenkinsfile.selenium’ found
Met criteria
ERROR: [Mon Jun 13 22:05:43 UTC 2022] Could not fetch branches from source a4e4fa47-7b9a-49de-a5b8-56e68cfb2e08
[Mon Jun 13 22:05:43 UTC 2022] Finished branch indexing. Indexing took 1 min 17 sec
FATAL: Failed to recompute children of resilient-selenium
java.lang.IllegalStateException: JENKINS-42511: attempted to redundantly create release%2Fv1.9.0.0 in org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject@17a57a09[resilient-selenium]
at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observeNew(MultiBranchProject.java:2055)
at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:1990)
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:357)
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:249)
at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1055)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:641)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1032)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Finished: FAILURE
Deleted the cache in $JENKINS_HOME/org.jenkinsci.plugins.github_branch_source.GitHubSCMProbe.cache/*
but the issue still persists
To Reproduce Steps to reproduce the behavior:
- Click on 'Scan Repository Now'
- Go to 'Scan Repository Log'
- See error
Expected behavior
Repository to be scanned successfully
Not sure if the %2F in branch name is causing issues? Though it worked for a similarly named branch
Branch name is release/v1.9.0.0
java.lang.IllegalStateException: JENKINS-42511: attempted to redundantly create release%2Fv1.9.0.0 in org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject@17a57a09[resilient-selenium]