From b64833b08e839691cc0c95aa27b49e7eee83dbe6 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Wed, 1 Feb 2017 14:27:19 -0500 Subject: Add URL for results report Records the URL returned from testresults db. Changes the URL ref from localhost to external and reports in daily job. Change-Id: I0068ea963671fb183779ac20592ba6933647eea0 JIRA: STORPERF-104 Signed-off-by: mbeierl --- ci/daily.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/daily.sh b/ci/daily.sh index b31f8e6..1e01cb8 100755 --- a/ci/daily.sh +++ b/ci/daily.sh @@ -90,7 +90,6 @@ do | awk '/Status/ {print $2}' | cut -d\" -f2` done - echo ========================================================================== echo Starting full matrix run echo ========================================================================== @@ -112,9 +111,14 @@ do | awk '/Status/ {print $2}' | cut -d\" -f2` done +HREF=`curl -s -X GET "http://127.0.0.1:5000/api/v1.0/jobs?id=$JOB&type=status" \ + | awk '/TestResultURL/ {print $2}' | cut -d\" -f2 | cut -d/ -f4-` + echo "Deleting stack for cleanup" curl -X DELETE --header 'Accept: application/json' 'http://127.0.0.1:5000/api/v1.0/configurations' sudo chmod 777 -R $WORKSPACE/ci/job/carbon +echo "Results published to: http://testresults.opnfv.org/test/$HREF" + exit 0 -- cgit 1.2.3-korg