Skip to content

Commit

Permalink
Fix git command in deploy.sh
Browse files Browse the repository at this point in the history
Because jenkins works on a detached HEAD, the git command that we were using to try to push the commits back up to github was invalid.  This commit changes the script to use an environment variable (populated by a Jenkins build parameter) to determine the correct branch name.
  • Loading branch information
cprice404 committed Feb 19, 2014
1 parent 6beb862 commit 52ce3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jenkins/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ echo "Tests passed!"
lein release
echo "Release plugin successful, pushing changes to git"

git push origin --tags `git rev-parse --abbrev-ref HEAD`
git push origin --tags HEAD:$TRAPPERKEEPER_BRANCH

echo "git push successful."

0 comments on commit 52ce3aa

Please sign in to comment.