From 59ca5134602257e4fa3ea1bd076bacdbe114463f Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Fri, 7 Jul 2017 06:06:16 +0000 Subject: [PATCH] Change owner of the openrc file for compass The jenkins user is not permitted to view openrc file with root owner and group.[1] cat: /home/jenkins/opnfv-openrc.sh: Permission denied [1]: https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/1293/console Change-Id: I89d0597c8f0ece00f70fd6622048794b15510636 Signed-off-by: Linda Wang --- utils/fetch_os_creds.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh index b514a91d3..285f838db 100755 --- a/utils/fetch_os_creds.sh +++ b/utils/fetch_os_creds.sh @@ -155,6 +155,7 @@ elif [ "$installer_type" == "apex" ]; then elif [ "$installer_type" == "compass" ]; then if [ "${BRANCH}" == "master" ]; then sudo docker cp compass-tasks:/opt/openrc $dest_path &> /dev/null + sudo chown $(whoami):$(whoami) $dest_path else verify_connectivity $installer_ip controller_ip=$(sshpass -p'root' ssh 2>/dev/null $ssh_options root@${installer_ip} \ -- 2.16.6