You may ask that this workflow build wait for completion of the downstream build.
In that case the return value of the step is an object on which you can obtain the following read-only properties:
so you can inspect its result
and so on.
number
result
(typically SUCCESS
, UNSTABLE
, or FAILED
)displayName
description
id
timeInMillis
startTimeInMillis
duration
building
inProgress
previousBuild
(another similar object)nextBuild
For a non-Workflow downstream build, the buildVariables
property offers access to a map of defined build variables.
For a Workflow downstream build, this property gives access to any variables set globally on env
.
Administrator-approved scripts outside the sandbox can use the rawBuild
property to get access to a hudson.model.Run
with further APIs.
You will generally need to do so inside a method marked @NonCps
to avoid storing intermediate values.
If you do not wait, this step succeeds so long as the downstream build can be added to the queue (it will not even have been started). In that case there is currently no return value.