diff options
author | mbeierl <mark.beierl@dell.com> | 2017-10-18 00:38:11 -0400 |
---|---|---|
committer | Mark Beierl <mark.beierl@dell.com> | 2017-10-18 11:48:02 +0000 |
commit | 00e37adc0d2829c69d0309cdf7ec85907f97f91f (patch) | |
tree | 74c0bcb848e6d640304b70d13e82153f842545ee /ci | |
parent | 7cafd2b79cf1d83c9bddb6b7c686b693ad84a5e4 (diff) |
Fixing daily job
Change-Id: I3ec92a7688106e7caa33be89926a7bea6b757596
Signed-off-by: mbeierl <mark.beierl@dell.com>
(cherry picked from commit 5f6100a6a86536a4d1b1fa0a238a451aba92f844)
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/daily.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/daily.sh b/ci/daily.sh index 0170b41..29a7700 100755 --- a/ci/daily.sh +++ b/ci/daily.sh @@ -88,14 +88,14 @@ JOB=$("${WORKSPACE}/ci/start_job.sh" \ 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=$(awk '/Status/ {print $2}' "${WORKSPACE}/ci/job/status.json" | cut -d\" -f2) +JOB_STATUS=$(grep -A2 $JOB "${WORKSPACE}/ci/job/status.json" | awk '/Status/ {print $2}' | cut -d\" -f2) while [ "${JOB_STATUS}" != "Completed" ] do sleep 600 mv "${WORKSPACE}/ci/job/status.json" "${WORKSPACE}/ci/job/old-status.json" 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=$(awk '/Status/ {print $2}' "${WORKSPACE}/ci/job/status.json" | cut -d\" -f2) + JOB_STATUS=$(grep -A2 $JOB "${WORKSPACE}/ci/job/status.json" | awk '/Status/ {print $2}' | cut -d\" -f2) if diff "${WORKSPACE}/ci/job/status.json" "${WORKSPACE}/ci/job/old-status.json" >/dev/null then cat "${WORKSPACE}/ci/job/status.json" |