dovetail: chown for output results file 85/22585/3
authorMatthewLi <matthew.lijun@huawei.com>
Fri, 30 Sep 2016 07:14:23 +0000 (03:14 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Fri, 30 Sep 2016 09:09:10 +0000 (05:09 -0400)
JIRA: DOVETAIL-14

Change-Id: I5953a8368503329aa668f7ae27ed2a816e562f54
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
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!"