Return value of build Pipeline step - What is it?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Return value of build Pipeline step - What is it?

George Sexton
Can anyone help me understand what if any the return value is for the build pipeline step? I've read the docs here:

https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#-build-%20build%20a%20job

There's a vague reference here:

propagate (optional)

If set, then if the downstream build is anything but successful (blue ball), this step fails. If disabled, then this step succeeds even if the downstream build is unstable, failed, etc.; use the result property of the return value as needed.



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1590dd9b-1951-4e02-ba33-679e21fd989c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Return value of build Pipeline step - What is it?

stuartrowe
The return value is a RunWrapper as long as wait is set to true.

On Thursday, 11 July 2019 06:58:13 UTC-7, George Sexton wrote:
Can anyone help me understand what if any the return value is for the build pipeline step? I've read the docs here:

<a href="https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#-build-%20build%20a%20job" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fpipeline%2Fsteps%2Fpipeline-build-step%2F%23-build-%2520build%2520a%2520job\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF_lxivFbHWE8kx1Up-ieFkIYkpWw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjenkins.io%2Fdoc%2Fpipeline%2Fsteps%2Fpipeline-build-step%2F%23-build-%2520build%2520a%2520job\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF_lxivFbHWE8kx1Up-ieFkIYkpWw&#39;;return true;">https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#-build-%20build%20a%20job

There's a vague reference here:

propagate (optional)

If set, then if the downstream build is anything but successful (blue ball), this step fails. If disabled, then this step succeeds even if the downstream build is unstable, failed, etc.; use the result property of the return value as needed.



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f62cfa21-6bee-47fe-af42-31fe557e048c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Return value of build Pipeline step - What is it?

George Sexton
Thanks.

On Thursday, July 11, 2019 at 8:55:25 AM UTC-6, Stuart Rowe wrote:
The return value is a <a href="https://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fplugin%2Fworkflow-support%2Forg%2Fjenkinsci%2Fplugins%2Fworkflow%2Fsupport%2Fsteps%2Fbuild%2FRunWrapper.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE7JetXcLpyayg1qQp_4Hf64wPYcQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjavadoc.jenkins.io%2Fplugin%2Fworkflow-support%2Forg%2Fjenkinsci%2Fplugins%2Fworkflow%2Fsupport%2Fsteps%2Fbuild%2FRunWrapper.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE7JetXcLpyayg1qQp_4Hf64wPYcQ&#39;;return true;">RunWrapper as long as wait is set to true.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/01cc1c8e-4849-4595-bdd7-055d6bec2c33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.