From 93fa78bec3fcc5cca7e7c8a1554f2583d2e99b69 Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Mon, 23 Jul 2018 15:27:45 -0700 Subject: Upload robot logs to gs Change-Id: I78989fcfd155054d8470359c59f682eb4ba3ea80 Signed-off-by: Jamo Luhrsen --- jjb/cperf/cperf-robot-netvirt-csit.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'jjb/cperf') 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 -- cgit 1.2.3-korg