From 64b8d9e3e4da7ccb87f0ee61d9d00fd72bca4d5b Mon Sep 17 00:00:00 2001 From: Andre Sencioles Date: Thu, 15 Jun 2017 21:20:28 +1200 Subject: check job status --- extra/oxidized-report-git-commits | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extra') 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' -- cgit v1.2.1