Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created May 31, 2021 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KyMidd/5001eba740265d64ca2255673e758e8a to your computer and use it in GitHub Desktop.
Save KyMidd/5001eba740265d64ca2255673e758e8a to your computer and use it in GitHub Desktop.
# If all happy, return 0 exit code. Else return 1 and fail
if [ $job1_results = "SUCCEEDED" ] && [ $job2_results = "SUCCEEDED" ]; then
echo "##[section]All tests pass"
exit 0
else
echo "##[error]At least one test has failed. Either your code or our tests aren't valid."
echo "##[error]Feel free to run the validations again"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment