Add full path of git config file
[infra/cicd.git] / 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"