summaryrefslogtreecommitdiffstats
path: root/jjb/cperf
diff options
context:
space:
mode:
authorJamo Luhrsen <jluhrsen@redhat.com>2018-07-23 15:27:45 -0700
committerJamo Luhrsen <jluhrsen@redhat.com>2018-07-23 22:20:49 -0700
commit93fa78bec3fcc5cca7e7c8a1554f2583d2e99b69 (patch)
tree350ba8fda5e5a57bafab14dc6e750e3bc94c4c4e /jjb/cperf
parentd336e8e842f451b661c9777eaef9462bbff4dd93 (diff)
Upload robot logs to gs
Change-Id: I78989fcfd155054d8470359c59f682eb4ba3ea80 Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
Diffstat (limited to 'jjb/cperf')
-rwxr-xr-xjjb/cperf/cperf-robot-netvirt-csit.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/jjb/cperf/cperf-robot-netvirt-csit.sh b/jjb/cperf/cperf-robot-netvirt-csit.sh
index 291291186..42c44665a 100755
--- a/jjb/cperf/cperf-robot-netvirt-csit.sh
+++ b/jjb/cperf/cperf-robot-netvirt-csit.sh
@@ -66,12 +66,14 @@ else
-v NODE_FREEZE_COMMAND:\"sudo docker stop opendaylight_api\" "
fi
+LOGS_LOCATION=/tmp/robot_results
+
robot_cmd="pybot \
--removekeywords wuks \
--xunit robotxunit.xml \
-c critical \
-e exclude \
- -d /tmp/robot_results \
+ -d $LOGS_LOCATION \
-v BUNDLEFOLDER:/opt/opendaylight \
-v CONTROLLER_USER:heat-admin \
-v DEFAULT_LINUX_PROMPT:\$ \
@@ -110,8 +112,12 @@ robot_cmd="pybot \
echo "Robot command set: ${robot_cmd}"
echo "Running robot..."
docker run -i --net=host \
+ -v ${LOGS_LOCATION}:${LOGS_LOCATION} \
-v ${WORKSPACE}/id_rsa:/tmp/id_rsa \
-v ${WORKSPACE}/overcloudrc:/tmp/overcloudrc \
opnfv/cperf:$DOCKER_TAG \
/bin/bash -c "source /tmp/overcloudrc; mkdir -p \$HOME/.ssh; cp /tmp/id_rsa \$HOME/.ssh; \
$robot_cmd /home/opnfv/repos/odl_test/csit/suites/openstack/connectivity/l2.robot;"
+
+UPLOAD_LOCATION=artifacts.opnfv.org/cperf/cperf-apex-csit-${ODL_BRANCH}/${BUILD_NUMBER}/
+gsutil -m cp -r ${LOGS_LOCATION} gs://${UPLOAD_LOCATION} > gsutil.latest_logs.log \ No newline at end of file