diff options
author | Andre Sencioles <asenci@gmail.com> | 2017-06-15 21:20:28 +1200 |
---|---|---|
committer | Andre Sencioles <asenci@gmail.com> | 2017-06-15 21:20:28 +1200 |
commit | 64b8d9e3e4da7ccb87f0ee61d9d00fd72bca4d5b (patch) | |
tree | d74d8268a9c504b64ed3617a082755930abd791d /extra | |
parent | 7d262f0b94e8ecfdfbc97600d931cfec757af4e3 (diff) |
check job status
Diffstat (limited to 'extra')
-rwxr-xr-x | extra/oxidized-report-git-commits | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extra/oxidized-report-git-commits b/extra/oxidized-report-git-commits index 3bf1bbc..db36ecf 100755 --- a/extra/oxidized-report-git-commits +++ b/extra/oxidized-report-git-commits @@ -39,6 +39,10 @@ echo "Group name: ${OX_NODE_GROUP}" echo "Job status: ${OX_JOB_STATUS}" echo "Job time: ${OX_JOB_TIME}" +if [ "${OX_EVENT}" = "node_fail" ]; then + echo 'Job failed' + exit 64 +fi if [ -z "${OX_REPO_COMMITREF}" ]; then echo '$OX_REPO_COMMITREF not set' |