diff options
author | mbeierl <mark.beierl@dell.com> | 2017-09-12 10:00:57 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-09-12 10:00:57 -0400 |
commit | 6bdb9f4039e8e17e4eadcd307bbb8e265f229078 (patch) | |
tree | 3f582529ae531b12f13c15cbe91dbbe080b56e64 /ci/daily.sh | |
parent | 8969493e12b6573ab0655d88540135a6e9f757b3 (diff) |
Fixing daily
Changes daily to not exit on diff, and continue cleanup
Change-Id: Ifed60a1a44d9aead5cb3cb9f65c24a8acaec502a
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'ci/daily.sh')
-rwxr-xr-x | ci/daily.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/daily.sh b/ci/daily.sh index 8af8562..526df68 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' |