summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAndre Sencioles <asenci@gmail.com>2017-06-15 21:20:28 +1200
committerAndre Sencioles <asenci@gmail.com>2017-06-15 21:20:28 +1200
commit64b8d9e3e4da7ccb87f0ee61d9d00fd72bca4d5b (patch)
treed74d8268a9c504b64ed3617a082755930abd791d /extra
parent7d262f0b94e8ecfdfbc97600d931cfec757af4e3 (diff)
check job status
Diffstat (limited to 'extra')
-rwxr-xr-xextra/oxidized-report-git-commits4
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'