Add full path of git config file 26/226/1
authoreconwar <conor.ward@est.tech>
Mon, 7 Jan 2019 14:17:11 +0000 (14:17 +0000)
committereconwar <conor.ward@est.tech>
Mon, 7 Jan 2019 14:17:11 +0000 (14:17 +0000)
Change-Id: I3de79709de8ea26eac0afd25e5b28bb3db5c6c1f
Signed-off-by: econwar <conor.ward@est.tech>
jjb/global/push-upstream-jobs.sh

index 12f0ab26945db8d14e097fdb6028f3d190b8680e..7c66bdd023d9a07effd74f0775fe610e1c69c43f 100755 (executable)
@@ -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"