summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2018-11-09 14:01:48 -0500
committerMark Beierl <mark.beierl@dell.com>2018-11-09 19:42:11 +0000
commitb3dd4cdfc6ed5e4f6670eb577391d12710322a8c (patch)
tree511636ade766c367185367d6f3c2a91f67c1a3e2
parent01c47ec6005ac275fe9f2d2620931a626639fb99 (diff)
Another daily job fix
Change-Id: Ida3297e270413b1199dbe81008d65d546770fb6b Signed-off-by: mbeierl <mark.beierl@dell.com> (cherry picked from commit f6743a356384adaf8d3217a75254db4693e240c6)
-rwxr-xr-xci/daily.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/daily.sh b/ci/daily.sh
index 4711475..17026f3 100755
--- a/ci/daily.sh
+++ b/ci/daily.sh
@@ -89,14 +89,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=$(grep -A2 $JOB "${WORKSPACE}/ci/job/status.json" | awk '/Status/ {print $2}' | cut -d\" -f2)
+JOB_STATUS=$(awk '/Status/ {print $2}' "${WORKSPACE}/ci/job/status.json" | 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=$(grep -A2 $JOB "${WORKSPACE}/ci/job/status.json" | awk '/Status/ {print $2}' | cut -d\" -f2)
+ JOB_STATUS=$(awk '/Status/ {print $2}' "${WORKSPACE}/ci/job/status.json" | 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"