Merge "dovetail: chown for output results file"
authorMatthewLi <matthew.lijun@huawei.com>
Fri, 30 Sep 2016 09:22:41 +0000 (09:22 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Fri, 30 Sep 2016 09:22:42 +0000 (09:22 +0000)
jjb/dovetail/dovetail-run.sh

index 6453425..3f7a47b 100755 (executable)
@@ -48,5 +48,8 @@ sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/dovetail:${DOCKER_T
 
 echo "Dovetail: store results..."
 sudo cp -r /home/opnfv/dovetail/results ./
+#To make sure the file owner is jenkins, for the copied results files in the above line
+#if not, there will be error when next time to wipe workspace
+sudo chown -R jenkins:jenkins ${WORKSPACE}/results
 
 echo "Dovetail: done!"