diff options
author | mbeierl <mark.beierl@dell.com> | 2017-01-30 12:14:02 -0500 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-01-30 12:14:02 -0500 |
commit | 83e2fb154a4e89901b57cfca1931167898a2833f (patch) | |
tree | e890e5f3b305a64145b38bb68bbfe1b43402d46b /ci | |
parent | d6a4c32eeb15b24aa3079bb404ac79cffeacf6ff (diff) |
Make it easier to see what's happening in Jenkins
Change-Id: I3ac727faa98c1e87dcd9522c0063ca6b251c62b4
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/daily.sh | 10 | ||||
-rwxr-xr-x | ci/start_job.sh | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ci/daily.sh b/ci/daily.sh index 11af7f4..b31f8e6 100755 --- a/ci/daily.sh +++ b/ci/daily.sh @@ -81,12 +81,13 @@ export WORKLOAD=_warm_up WARM_UP=`$WORKSPACE/ci/start_job.sh | awk '/job_id/ {print $2}' | sed 's/"//g'` WARM_UP_STATUS=`curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$WARM_UP&type=status" \ - | awk '/Status/ {print $2}' | sed 's/"//g'` + | awk '/Status/ {print $2}' | cut -d\" -f2` while [ "$WARM_UP_STATUS" != "Completed" ] do sleep 60 + curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$WARM_UP&type=status" WARM_UP_STATUS=`curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$WARM_UP&type=status" \ - | awk '/Status/ {print $2}' | sed 's/"//g'` + | awk '/Status/ {print $2}' | cut -d\" -f2` done @@ -102,12 +103,13 @@ export TEST_CASE=snia_steady_state JOB=`$WORKSPACE/ci/start_job.sh \ | awk '/job_id/ {print $2}' | sed 's/"//g'` JOB_STATUS=`curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$JOB&type=status" \ - | awk '/Status/ {print $2}' | sed 's/"//g'` + | awk '/Status/ {print $2}' | cut -d\" -f2` while [ "$JOB_STATUS" != "Completed" ] do sleep 60 + curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$JOB&type=status" JOB_STATUS=`curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$JOB&type=status" \ - | awk '/Status/ {print $2}' | sed 's/"//g'` + | awk '/Status/ {print $2}' | cut -d\" -f2` done echo "Deleting stack for cleanup" diff --git a/ci/start_job.sh b/ci/start_job.sh index 86b8fc8..1a71735 100755 --- a/ci/start_job.sh +++ b/ci/start_job.sh @@ -28,7 +28,7 @@ cat << EOF > body.json } EOF -cat body.json +cat body.json 1>&2 curl -s -X POST --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ |