You can also use the tee step 
<https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#tee-tee-output-to-file>,
 
which automatically propagates the return codes of the steps inside of the 
tee.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e5b3fc7b-b661-42a4-877b-04fe69b02628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to