Created
April 22, 2019 15:54
-
-
Save danggrianto/11f8727be44c3ddd68f19e071a4113f2 to your computer and use it in GitHub Desktop.
Ignoring Jenkins Failures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run command but if there is error ignore it and save the status as error | |
command || error=true | |
if [ $error ] | |
then | |
exit -1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment