JIRA: DOVETAIL-150
Change-Id: Ia1e26b99cc8591fb17169c13c59138db2237a2c2
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
# Run docker
echo "Dovetail: docker running..."
# Run docker
echo "Dovetail: docker running..."
-cmds = "${DOVETAIL_REPO_DIR}/dovetail/run.py --testsuite $TESTSUITE"
-sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/dovetail:${DOCKER_TAG} ${cmds}
+sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/dovetail:${DOCKER_TAG} \
+"${DOVETAIL_REPO_DIR}/dovetail/run.py --testsuite ${TESTSUITE}"
echo "Dovetail: store results..."
echo "Dovetail: store results..."
-sudo cp -r /home/opnfv/dovetail/results ./
+sudo cp -r ${DOVETAIL_REPO_DIR}/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
#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