mirror of https://github.com/apache/cloudstack.git
Fixed on master for jenkins buildslave
This commit is contained in:
parent
fefddc0624
commit
5e717cbb89
|
|
@ -26,7 +26,14 @@ else
|
|||
fi
|
||||
|
||||
build_date=`date +%Y-%m-%d`
|
||||
branch=`git status | grep '# On branch' | awk '{print $4}'`
|
||||
|
||||
# set fixed or leave empty to use git to determine
|
||||
branch=master
|
||||
|
||||
if [ -z "$branch" ] ; then
|
||||
branch=`git status | grep '# On branch' | awk '{print $4}'`
|
||||
fi
|
||||
|
||||
if [ -z "$branch" ] ; then
|
||||
branch=unknown
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue