summaryrefslogtreecommitdiffstats
path: root/ci/daily.sh
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@dell.com>2017-09-12 14:19:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-12 14:19:33 +0000
commita5b902bc5167ab72ab2087355fdc4ec2fdbc0a2c (patch)
treeb0bb87aa57ecdbfd9248898e4e52b611b81dc608 /ci/daily.sh
parent240ad9c3df56d5a5caa741f0a046526ddecd9254 (diff)
parent6bdb9f4039e8e17e4eadcd307bbb8e265f229078 (diff)
Merge "Fixing daily"
Diffstat (limited to 'ci/daily.sh')
-rwxr-xr-xci/daily.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/daily.sh b/ci/daily.sh
index 51d3fd3..6548cb0 100755
--- a/ci/daily.sh
+++ b/ci/daily.sh
@@ -90,13 +90,14 @@ do
curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$JOB&type=status" \
-o $WORKSPACE/ci/job/status.json
JOB_STATUS=`cat $WORKSPACE/ci/job/status.json | awk '/Status/ {print $2}' | cut -d\" -f2`
- diff $WORKSPACE/ci/job/status.json $WORKSPACE/ci/job/old-status.json >/dev/null
- if [ $? -eq 1 ]
+ if diff $WORKSPACE/ci/job/status.json $WORKSPACE/ci/job/old-status.json >/dev/null
then
cat $WORKSPACE/ci/job/status.json
fi
done
+set +e
+
echo "Deleting stack for cleanup"
curl -s -X DELETE --header 'Accept: application/json' 'http://127.0.0.1:5000/api/v1.0/configurations'