summaryrefslogtreecommitdiffstats
path: root/jjb/cperf/cperf-upload-logs-csit.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-08-06 12:33:36 -0400
committerTim Rozet <trozet@redhat.com>2018-08-06 12:33:36 -0400
commit3f79d23b6bf0bc0beb83a010ec9701e91b158149 (patch)
treeea3e080efee6b537e000dc25252e12078b0d4ea7 /jjb/cperf/cperf-upload-logs-csit.sh
parentbad1efa24f143c7c016b7d629f151ef083372b61 (diff)
CPERF: Fix ODL_STREAM to not include 'stable/'
CSIT variable needs to be the branch short name. Also, removes duplicate log upload and fixes the upload path to use short name (to avoid '/' in path for branch) Change-Id: I5e1dac15fdbc1eca6c9edaf8b554c3362fd7a558 Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb/cperf/cperf-upload-logs-csit.sh')
-rw-r--r--jjb/cperf/cperf-upload-logs-csit.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/cperf/cperf-upload-logs-csit.sh b/jjb/cperf/cperf-upload-logs-csit.sh
index 7bf91df8b..bd8680406 100644
--- a/jjb/cperf/cperf-upload-logs-csit.sh
+++ b/jjb/cperf/cperf-upload-logs-csit.sh
@@ -4,7 +4,9 @@ set -o errexit
set -o nounset
set -o pipefail
+ODL_STREAM=${ODL_BRANCH#"stable/"}
+
LOGS_LOCATION=/tmp/robot_results
-UPLOAD_LOCATION=artifacts.opnfv.org/cperf/cperf-apex-csit-${ODL_BRANCH}/${BUILD_NUMBER}/
+UPLOAD_LOCATION=artifacts.opnfv.org/cperf/cperf-apex-csit-${ODL_STREAM}/${BUILD_NUMBER}/
echo "Uploading robot logs to ${UPLOAD_LOCATION}"
gsutil -m cp -r -v ${LOGS_LOCATION} gs://${UPLOAD_LOCATION} > gsutil.latest_logs.log