-
Improvement
-
Resolution: Unresolved
-
Minor
-
Jenkins 1.650
Parameterized Trigger Plugin 2.30
Use case: Build should be marked as unstable if a downstream test job fails.
In order to achieve this, the Parameterized Trigger plugin must be used to launch the test job during the build phase. The test job requires the artifacts to be present.
Unfortunately, If the trigger is placed in the post-build step, it cannot alter the state of the build. Further, if used in a multi-configuration project, the trigger is executed in the scope of the parent job, rather than the child, so the particular axis information, workspace, and other child job specific bits of information are not available.
My current workaround is to use the "Any build step plugin" to archive the build artifacts during the build phase, however, I think that it would be common usage to want to mark a build as unstable if a test fails.