-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
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
exit on error #8
Comments
I will see what I can do for this. But since you already have a workaround its not a priority. |
i up this request... i would like to have a failed if my script exit(1) ... all values != 0 -> failed |
@Hraesvelg It should already work the way you describe if you use explicit exit codes/calls from a non Windows shell. script-executor-task/src/main/java/com/tw/go/plugin/task/GoPluginImpl.java Lines 136 to 144 in 334f75c
This ticket is about exiting early if any of the commands within the script exit with non-zero exit code, i.e exiting early. Implementing the original request across shells is possible but a bit of a rabbithole, as even with bash/zsh you need But yeah, could possibly just drop |
Is it possible to interrupt the script execution if something went wrong?
I can achieve it by using 'set -e' at the begging of the script, but in this case I need to set this flag for all my scripts. Is there any way to setup it globally? or to pass to /bin/sh specific flag from gocd?
The text was updated successfully, but these errors were encountered: