Skip to content

Instantly share code, notes, and snippets.

@danggrianto
Created April 22, 2019 15:54
Show Gist options
  • Save danggrianto/11f8727be44c3ddd68f19e071a4113f2 to your computer and use it in GitHub Desktop.
Save danggrianto/11f8727be44c3ddd68f19e071a4113f2 to your computer and use it in GitHub Desktop.
Ignoring Jenkins Failures
# 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