Skip to content
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

ssl_letsencrypt_getandinstall.groovy - hard exit on error #144

Open
styk-tv opened this issue Apr 7, 2017 · 0 comments
Open

ssl_letsencrypt_getandinstall.groovy - hard exit on error #144

styk-tv opened this issue Apr 7, 2017 · 0 comments

Comments

@styk-tv
Copy link
Contributor

styk-tv commented Apr 7, 2017

script being run here is

bin/haproxy_get_ssl.py

python exit code should get transferred to bash negative code as usual.

CODE=$?
if [[ $CODE -ne 0 ]]; then
     echo 'MADCORE GET CERT FAILED WITH POSITIVE CODE ($CODE). FORCING JENKINS BASH EXIT AS -1 (TO SHOW THE FAIL)'
     exit -1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant