-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
RHEL 7, Jenkins v2.53, Blue Ocean v1.0.0
-
-
Blue Ocean - 1.1-beta-1
I'm having difficulties in setting getting blue ocean to import a project from GitHub. When I add a project-wide pipeline using the Blue Ocean "Add Pipeline" wizard and let it auto-discover projects based on the presence of Jenkinsfile_s, the _Scan organization log shows the following:
Proposing mitsuba2
Looking up mitsuba-renderer/mitsuba2
Getting remote pull requests...
Checking pull request #21
(not from a trusted source)
Checking pull request #20
Job name: PR-20
'Jenkinsfile' not found
Does not meet criteria
Checking pull request #19
(not from a trusted source)
Checking pull request #18
(not from a trusted source)
Checking pull request #15
(not from a trusted source)
Checking pull request #13
ERROR: Failed to create or update a subproject mitsuba2
java.lang.NullPointerException
at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:623)
at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:462)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:263)
at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1266)
at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1281)
at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.add(GitHubSCMNavigator.java:540)
at org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.visitSources(GitHubSCMNavigator.java:362)
at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:399)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:266)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:162)
at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:850)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
If I try to specifically add this project using the "Add pipeline" wizard, a failure occurs and the entire organization is deleted (which takes several other projects offline ). In this case, I see the following exception in ``jenkins.log``:
SEVERE: Error creating pipeline mitsuba-renderer: null java.lang.NullPointerException at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.doRetrieve(GitHubSCMSource.java:623) at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:462) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:230) at io.jenkins.blueocean.blueocean_github_pipeline.GithubPipelineCreateRequest.repoHasJenkinsFile(GithubPipelineCreateRequest.java:293) at io.jenkins.blueocean.blueocean_github_pipeline.GithubPipelineCreateRequest.create(GithubPipelineCreateRequest.java:175) at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:48) at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:44) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184) at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36) at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48) at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117) at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:26) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845) at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:209) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
- relates to
-
JENKINS-43487 NPE indexing pull request
- Closed