Last night a build (#468) of one of our Maven projects was started by an user manually by clicking on 'Rebuild Last'.
The build was marked as FAILED although the build log says "Finished: UNSTABLE" (two tests failed).
While looking at the "Module Builds" view I saw that one of the modules was built twice #468 (green) and #469 (red).
I had a look at ${JENKINS_HOME}/jobs/myJob/builds/468/module_f/build.xml
<hudson.model.CauseAction>
<causes>
<hudson.model.Cause_-UserIdCause>
<userId>clifford</userId>
</hudson.model.Cause_-UserIdCause>
</causes>
</hudson.model.CauseAction>
<hudson.model.CauseAction>
<causes>
<com.sonyericsson.rebuild.RebuildCause plugin="reb...@1.22">
<upstreamProject>myJob/module_f</upstreamProject>
<upstreamUrl>view/myView/job/myJob/module_f/</upstreamUrl>
<upstreamBuild>460</upstreamBuild>
<upstreamCauses/>
</com.sonyericsson.rebuild.RebuildCause>
</causes>
</hudson.model.CauseAction>
Build #460 was started a week ago, succeeded and is marked to be kept forever.
These are the sorted timestamps of the files/directories in ${JENKINS_HOME}/jobs/myJob/builds/468
...
19:44:47.551809648 +0200 module_s -> ../../modules/module_a/builds/2015-05-05_18-08-56
19:45:32.997800146 +0200 module_t -> ../../modules/module_t/builds/2015-05-05_18-08-56
19:46:37.867786723 +0200 timestamper
19:46:37.867786723 +0200 log
19:47:09.709780194 +0200 injectedEnvVars.txt
19:47:09.910780153 +0200 build.xml
19:47:09.915780152 +0200 module_f -> ../../modules/module_f/builds/2015-05-05_19-46-40
Started by user Clifford
Finished: ABORTED
FATAL: cannot change build result while in COMPLETED
java.lang.IllegalStateException: cannot change build result while in COMPLETED
at hudson.model.Run.setResult(Run.java:458)
at hudson.model.Run.execute(Run.java:1759)
at hudson.maven.MavenBuild.run(MavenBuild.java:269)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
In the job configuration "Enable triggering of downstream projects" and "Block downstream trigger when building" are enabled.
We use
- Jenkins 1.594
- Maven Project Plugin 2.8
- Rebuild Plugin 1.22
Can someone explain to me has happened here?