Skip to content

Commit

Permalink
Revert "[jenkins] - use a new method to determine the branch name by …
Browse files Browse the repository at this point in the history
…ignoring the pr ref_spec - thx to theuni for figuring that out"

This reverts commit afb5a69.

It resulted in "undefined" branch name. Stick with the old method until someone decides its not working for all cases. Sry TheUni - but theory proved wrong ... ;)
  • Loading branch information
Memphiz committed Aug 12, 2013
1 parent 8166511 commit 092ce42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/buildsteps/defaultenv
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function getBuildRevDateStr ()
if [ "$?" == "0" ]
then
#fetch the first branch containing head
revStr=$revStr"-"`git name-rev --ref=refs/heads/* --name-only HEAD | head -n1 | awk '{gsub(".*/","");print $1}'`
revStr=$revStr"-"`git branch -r --contains HEAD | sed "/origin\/pr\//d" | head -n1 | awk '{gsub(".*/","");print $1}'`
if [ "$?" == "0" ]
then
echo $revStr
Expand Down

0 comments on commit 092ce42

Please sign in to comment.