aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2013-08-05 20:24:43 +0200
committerMemphiz <memphis@machzwo.de>2013-08-05 20:29:26 +0200
commitbc79663c72f9ead4831d4176435fa5fd0f2b0939 (patch)
tree77abfa60dff7c872f153aadf4c51cc1070eb9e4c /tools
parentd99be0107174e64fc44ce1bd50ef834c8ef0e1f4 (diff)
[jenkins] - when determining the branch name - ignore the fetched pull requests
Diffstat (limited to 'tools')
-rw-r--r--tools/buildsteps/defaultenv2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/buildsteps/defaultenv b/tools/buildsteps/defaultenv
index bbdcb29c90..93d3c13148 100644
--- a/tools/buildsteps/defaultenv
+++ b/tools/buildsteps/defaultenv
@@ -119,7 +119,7 @@ function getBuildRevDateStr ()
if [ "$?" == "0" ]
then
#fetch the first branch containing head
- revStr=$revStr"-"`git branch -r --contains 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