-
Bug
-
Resolution: Unresolved
-
Minor
-
None
We have a multi-phase legacy job for product testing, where one phase has several sequential steps to set up a deployment, then another runs the tests against it, another analyzes the results etc.
The sequential set-up phase in a recent build failed to install the product image, and as that sub-job in the phase had settings to fail the phase and kill other builds, other steps such as configuring that deployment indeed did not happen.
However, even though this phase overall had a setting to continue into the next phase if the build is "Successful or Unstable, but not Failed", tests commenced against the incorrectly prepared product.
The expected outcome was for the MultiPhase job to fail and not do any other steps right there, when it decided the installation was broken.
We are now reconfiguring such jobs to require a "Successful" outcome (and hope it will behave better), but still suspect something can be wrong in the plugin. Or our setup and use of it, somehow...
I recently had the same problem. Where a multijob phase failed and was set to only continue if the phase was successful. However it continued even though the phase failed.
This does not happen all the time. But it happens enough to cause problems.
More details for our problem:
This job is set to sequential and to only continue when jobs' status are Successful
Kill the phase on: Failure
Kill the phase on Failure
Run jobs in parallel. Continue if jobs are stable or unstable but not failed
Never kill this phase
Run jobs in parallel. Continue if jobs are successful
Kill the phase on failure
We had a failure during the first phase when the artifacts were being merged. The job clearly shows it reported a failure, but the MultiJob continued to the next entry even though that phase should have failed.