We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Real sh step when run with returnStdout:true argument, will still finish with error when script inside sh returns non-0 status.
sh
returnStdout:true
However, because of this logic
JenkinsPipelineUnit/src/main/groovy/com/lesfurets/jenkins/unit/PipelineTestHelper.groovy
Line 691 in a469daf
the mocked version of sh bails out too early, and no exception is thrown upon error exit status.
The text was updated successfully, but these errors were encountered:
Yes, you're right, this seems to be the correct behavior. Please see #329.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Real
sh
step when run withreturnStdout:true
argument, will still finish with error when script insidesh
returns non-0 status.However, because of this logic
JenkinsPipelineUnit/src/main/groovy/com/lesfurets/jenkins/unit/PipelineTestHelper.groovy
Line 691 in a469daf
the mocked version of
sh
bails out too early, and no exception is thrown upon error exit status.The text was updated successfully, but these errors were encountered: