Praqma / pretested-integration-plugin

A generic pretest commit plugin for Jenkins CI
MIT License
7 stars 14 forks source link

"No branch" -> NOT_BUILT gives a NULL pointer exception in post actions #141

Closed bicschneider closed 4 years ago

bicschneider commented 5 years ago
Seen 122 remote branches
 > git.exe show-ref --tags -d # timeout=10
[PREINT]  Pretested Integration Plugin v3.1.0
[PREINT]  - No branch on revision which we cannot handle - leaving workspace: develop  and set result to NOT_BUILT
 > git.exe rev-parse "HEAD^{commit}" # timeout=10
....
INFO: Stopping recording.
ERROR: Build step failed with exception
java.lang.NullPointerException
    at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout.perform(PretestedIntegrationPostCheckout.java:133)
    at org.jenkinsci.plugins.pretestedintegration.PretestedIntegrationPostCheckout.perform(PretestedIntegrationPostCheckout.java:68)
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
    at hudson.model.Build$BuildExecution.post2(Build.java:186)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
    at hudson.model.Run.execute(Run.java:1752)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
Build step 'Pretested Integration publisher to push to integration branch' marked build as failure
No emails were triggered.
Finished: NOT_BUILT