summaryrefslogtreecommitdiffstats
path: root/jjb/dovetail/dovetail-run.sh
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-03-21 22:35:52 -0400
committerxudan <xudan16@huawei.com>2018-03-22 21:15:37 -0400
commitb92b92cfeff065fa18afb9cc8c7a23bb53aef096 (patch)
tree3e01166410ddf5dd530aa1555b3ce85c4e8dfc6a /jjb/dovetail/dovetail-run.sh
parent9117d5b1f97dc706732d8f0ab177c8373b212b04 (diff)
Bugfix: command chown failed because LF POD has no jenkins user
Command change the file owner failed on lf-pod1 and lf-pod2 with the reason "chown: invalid user: ‘jenkins:jenkins’". Make pod.yaml file can be modified by any user. Change-Id: I1feb108e95c59c228d2aef55862017e9b80bcb73 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'jjb/dovetail/dovetail-run.sh')
-rwxr-xr-xjjb/dovetail/dovetail-run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh
index 1c53dbee4..d01128385 100755
--- a/jjb/dovetail/dovetail-run.sh
+++ b/jjb/dovetail/dovetail-run.sh
@@ -95,7 +95,7 @@ cat $OPENRC
if [[ ! "${SUT_BRANCH}" =~ "danube" && ${INSTALLER_TYPE} == "compass" ]]; then
compass_repo=${WORKSPACE}/compass4nfv/
git clone https://github.com/opnfv/compass4nfv.git ${compass_repo} >/dev/null
- pip install shyaml
+ sudo pip install shyaml
scenario_file=${compass_repo}/deploy/conf/hardware_environment/$NODE_NAME/os-nosdn-nofeature-ha.yml
ipmiIp=$(cat ${scenario_file} | shyaml get-value hosts.0.ipmiIp)
ipmiPass=$(cat ${scenario_file} | shyaml get-value hosts.0.ipmiPass)
@@ -165,7 +165,7 @@ if [[ ! -f ${DOVETAIL_CONFIG}/pod.yaml ]]; then
fi
if [ -f ${DOVETAIL_CONFIG}/pod.yaml ]; then
- sudo chown jenkins:jenkins ${DOVETAIL_CONFIG}/pod.yaml
+ sudo chmod 666 ${DOVETAIL_CONFIG}/pod.yaml
echo "Adapt process info for $INSTALLER_TYPE ..."
attack_process='rabbitmq'
cat << EOF >> ${DOVETAIL_CONFIG}/pod.yaml