From: econwar Date: Mon, 7 Jan 2019 14:17:11 +0000 (+0000) Subject: Add full path of git config file X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=2de417599786a0d9a2ea1ce3f95f4cbdd40fe7cf;p=infra%2Fcicd.git Add full path of git config file Change-Id: I3de79709de8ea26eac0afd25e5b28bb3db5c6c1f Signed-off-by: econwar --- diff --git a/jjb/global/push-upstream-jobs.sh b/jjb/global/push-upstream-jobs.sh index 12f0ab269..7c66bdd02 100755 --- a/jjb/global/push-upstream-jobs.sh +++ b/jjb/global/push-upstream-jobs.sh @@ -44,9 +44,9 @@ git config user.name $username git reset HEAD~1 git checkout -b delivery_branch origin/master -echo '[remote "upstream"]' >> .git/config -echo " url = ssh://$username@gerrit.onap.org:29418/$project.git" >> .git/config -echo " fetch = +refs/heads/*:refs/remotes/upstream/*" >> .git/config +echo '[remote "upstream"]' >> $WORKSPACE/.git/config +echo " url = ssh://$username@gerrit.onap.org:29418/$project.git" >> $WORKSPACE/.git/config +echo " fetch = +refs/heads/*:refs/remotes/upstream/*" >> $WORKSPACE/.git/config git commit -as -m "$message"