summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-07-07 06:06:16 +0000
committerLinda Wang <wangwulin@huawei.com>2017-07-07 07:52:24 +0000
commit59ca5134602257e4fa3ea1bd076bacdbe114463f (patch)
tree200ac481b8c4699c71a888d1ef586ad60312a31d
parent7da23259c30038ff2f69c36b2c7117e2d69820f1 (diff)
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 <wangwulin@huawei.com>
-rwxr-xr-xutils/fetch_os_creds.sh1
1 files changed, 1 insertions, 0 deletions
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} \