jenkinsci / coordinator-plugin

Make deployment done by a single click.
https://plugins.jenkins.io/coordinator/
Other
16 stars 10 forks source link

Null Pointer Exception thrown when build triggered by SCM change #41

Closed philmadden83 closed 7 years ago

philmadden83 commented 7 years ago

NullPointerExecption thrown when calling prepareExecutionPlan when build is triggered as a result of an SCM change.

Build triggered via the hudson.triggers.SCMTrigger.SCMAction Action.

ERROR: Build step failed with exception
java.lang.NullPointerException
    at org.jenkinsci.plugins.coordinator.model.PerformExecutor.prepareExecutionPlan(PerformExecutor.java:157)
    at org.jenkinsci.plugins.coordinator.model.PerformExecutor.execute(PerformExecutor.java:98)
    at org.jenkinsci.plugins.coordinator.model.CoordinatorBuilder.perform(CoordinatorBuilder.java:58)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
    at hudson.model.Build$BuildExecution.build(Build.java:205)
    at hudson.model.Build$BuildExecution.doRun(Build.java:162)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
    at hudson.model.Run.execute(Run.java:1741)
    at hudson.model.Build.run(Build.java:113)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:408)
Build step 'Coordinator' marked build as failure
[BFA] Scanning build for known causes...
[BFA] No failure causes found
philmadden83 commented 7 years ago

I believe this call returns null

https://github.com/jenkinsci/coordinator-plugin/blob/develop/src/main/java/org/jenkinsci/plugins/coordinator/model/CoordinatorBuild.java#L286

philmadden83 commented 7 years ago

Sames as issue #38