Add push-upstream jobs for multiple branches
[infra/cicd.git] / jjb / global / push-upstream-jobs.sh
index a1eeace3c22aef09b0d082d86d58ca20b1292c1a..492071c5086d0d848de0e40934052b9fb667f88d 100755 (executable)
@@ -61,7 +61,7 @@ fi
 
 echo "Committing changes and pushing upstream"
 git commit -as -m "$message"
-git push upstream HEAD:refs/for/master
+git push upstream HEAD:refs/for/$BRANCH
 
 retVal1=$?
 if [[ $retVal1 -eq 0 ]]