-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.136
Blue Ocean
1.8.3
The version 1.2.2 causes exception for the first build of every branch and PR. See the exception at the end.
Additional data points
- We saw this reported in JENKINS-50715 which suggests the pull request https://github.com/jenkinsci/blueocean-autofavorite-plugin/pull/16 solves the issue.
- We built the latest source from https://github.com/jenkinsci/blueocean-autofavorite-plugin and the issue still exists
- We made a copy of the code and introduced a hack to have a try catch inside the entire onCheckout method to avoid this.
- This is really a Priority one bug for Blue Ocean. Now since jamesdumay has left CloudBees are we stuck with Blue Ocean not receiving the needed attention?
java.lang.NullPointerException at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:109) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:127) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)