From 3f79d23b6bf0bc0beb83a010ec9701e91b158149 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Mon, 6 Aug 2018 12:33:36 -0400 Subject: 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 --- jjb/cperf/cperf-robot-netvirt-csit.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'jjb/cperf/cperf-robot-netvirt-csit.sh') diff --git a/jjb/cperf/cperf-robot-netvirt-csit.sh b/jjb/cperf/cperf-robot-netvirt-csit.sh index d40ad943a..b07955c78 100755 --- a/jjb/cperf/cperf-robot-netvirt-csit.sh +++ b/jjb/cperf/cperf-robot-netvirt-csit.sh @@ -13,10 +13,10 @@ fi if [ "$ODL_BRANCH" == 'master' ]; then ODL_STREAM='flourine' else - ODL_STREAM=${ODL_BRANCH} + ODL_STREAM=${ODL_BRANCH#"stable/"} fi -echo "ODL Branch set: ${ODL_BRANCH} and OS Version is ${FULL_OS_VER}" +echo "ODL Stream set: ${ODL_STREAM} and OS Version is ${FULL_OS_VER}" sudo rm -rf releng git clone https://gerrit.opnfv.org/gerrit/releng.git @@ -128,7 +128,3 @@ docker run -i --net=host \ /bin/bash -c "source /tmp/overcloudrc; mkdir -p \$HOME/.ssh; cp /tmp/id_rsa \$HOME/.ssh; \ cd /home/opnfv/repos/odl_test/ && git pull origin master; \ ${robot_cmd} ${suites};" - -UPLOAD_LOCATION=artifacts.opnfv.org/cperf/cperf-apex-csit-${ODL_BRANCH}/${BUILD_NUMBER}/ -echo "Uploading robot logs to ${UPLOAD_LOCATION}" -gsutil -m cp -r -v ${LOGS_LOCATION} gs://${UPLOAD_LOCATION} > gsutil.latest_logs.log -- cgit 1.2.3-korg