From 52ce3aaca5b2bb940f64fd72e2785bbc115cddb9 Mon Sep 17 00:00:00 2001 From: Chris Price Date: Wed, 19 Feb 2014 09:52:31 -0800 Subject: [PATCH] Fix git command in deploy.sh 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. --- jenkins/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/deploy.sh b/jenkins/deploy.sh index f4b3535f..7948dd37 100755 --- a/jenkins/deploy.sh +++ b/jenkins/deploy.sh @@ -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."