bugfix: yardstick reporing in stable branch omit stable/ 65/20865/2
authorrexlee8776 <limingjiang@huawei.com>
Mon, 12 Sep 2016 07:27:01 +0000 (07:27 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Mon, 12 Sep 2016 08:26:55 +0000 (08:26 +0000)
JIRA: YARDSTICK-343

Change-Id: Id11b8a3aeac34686935b97bee9061415ebb62c21
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
tests/ci/yardstick-verify

index 37d0a90..16df3bb 100755 (executable)
@@ -295,17 +295,16 @@ report(){
 
     echo
     echo "========== Reporting Status =========="
-
     curl -i -H 'content-type: application/json' -X POST -d \
         "{\"project_name\": \"yardstick\",
           \"case_name\": \"scenario_status\",
           \"pod_name\":\"${NODE_NAME}\",
           \"installer\":\"${INSTALLER_TYPE}\",
-          \"version\":\"${YARDSTICK_BRANCH}\",
+          \"version\":\"$(basename ${YARDSTICK_BRANCH})\",
           \"scenario\":\"${DEPLOY_SCENARIO}\",
           \"description\": \"yardstick ci scenario status\",
-          \"start_date\":\"$2\",
           \"criteria\":\"$1\",
+          \"start_date\":\"$2\",
           \"stop_date\":\"$3\",
           \"details\":\"\"}" \
           ${DISPATCHER_HTTP_TARGET}