Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

The JobResultConsumption unit test exhibits the consumption of a job result. The test creates a launchy job which fails on even build numbers (just to have a job which fails first and succeeds the second time):

echo "launchy running"
sleep 5
exit $((BUILD_NUMBER%2!=0))

The launchy job is called by the Run Launchy Jenkins Task.

Failure Case

In the "failure" branch of the exclusive gateway there's the condition which uses the expression job.get("launch").getLastBuildResult() to access the last build result of launchy:

Success Case

In the "success" branch of the exclusive gateway there's the complementary condition:

  • No labels