-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: branch-api-plugin
I have recently created a new Jenkinsfile on Jenkins-on-Jenkins, and the CI didn't start after that due to whatever reason. The ComputedFolder was created, but I got the following for the branch scan:
Pull request #309 updated in repository mesos-plugin
[Wed Jan 10 17:06:41 GMT 2018] Starting branch indexing...
17:06:41 Connecting to https://api.github.com using jenkinsadmin/****** (GitHub access token for jenkinsadmin)
17:06:41 Connecting to https://api.github.com using jenkinsadmin/****** (GitHub access token for jenkinsadmin)
Examining jenkinsci/mesos-plugin
Checking branches...
Getting remote branches...
Checking branch gh-pages
‘Jenkinsfile’ not found
Does not meet criteria
Checking branch master
‘Jenkinsfile’ not found
Does not meet criteria
2 branches were processed
Checking pull-requests...
Getting remote pull requests...
Checking pull request #309
‘Jenkinsfile’ found
Met criteria
ERROR: [Wed Jan 10 17:06:45 GMT 2018] Could not fetch branches from source org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::jenkinsci::mesos-plugin
java.lang.IllegalStateException: no parent set on org.jenkinsci.plugins.workflow.job.WorkflowJob[PR-309]
at hudson.model.AbstractItem.getParent(AbstractItem.java:201)
at hudson.model.AbstractItem.getRootDir(AbstractItem.java:192)
at hudson.model.Items.getConfigFile(Items.java:387)
at hudson.model.AbstractItem.getConfigFile(AbstractItem.java:505)
at hudson.model.AbstractItem.save(AbstractItem.java:500)
at hudson.model.Job.save(Job.java:196)
at org.jenkinsci.plugins.workflow.job.WorkflowJob.setDefinition(WorkflowJob.java:169)
at org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.setBranch(AbstractWorkflowBranchProjectFactory.java:63)
at org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.newInstance(AbstractWorkflowBranchProjectFactory.java:54)
at org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.newInstance(AbstractWorkflowBranchProjectFactory.java:44)
at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:2161)
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:359)
at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:928)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
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:1025)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
[Wed Jan 10 17:06:45 GMT 2018] Finished branch indexing. Indexing took 3.6 sec
FATAL: Failed to recompute children of Plugins » mesos-plugin
java.lang.IllegalStateException: no parent set on org.jenkinsci.plugins.workflow.job.WorkflowJob[PR-309]
at hudson.model.AbstractItem.getParent(AbstractItem.java:201)
at hudson.model.AbstractItem.getRootDir(AbstractItem.java:192)
at hudson.model.Items.getConfigFile(Items.java:387)
at hudson.model.AbstractItem.getConfigFile(AbstractItem.java:505)
at hudson.model.AbstractItem.save(AbstractItem.java:500)
at hudson.model.Job.save(Job.java:196)
at org.jenkinsci.plugins.workflow.job.WorkflowJob.setDefinition(WorkflowJob.java:169)
at org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.setBranch(AbstractWorkflowBranchProjectFactory.java:63)
at org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.newInstance(AbstractWorkflowBranchProjectFactory.java:54)
at org.jenkinsci.plugins.workflow.multibranch.AbstractWorkflowBranchProjectFactory.newInstance(AbstractWorkflowBranchProjectFactory.java:44)
at jenkins.branch.MultiBranchProject$SCMHeadObserverImpl.observe(MultiBranchProject.java:2161)
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:359)
at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:928)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
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:1025)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
Finished: FAILURE
- links to
- mentioned in
-
Page Loading...