mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
Fixed on master for jenkins buildslave
This commit is contained in:
parent
fefddc0624
commit
5e717cbb89
@ -26,7 +26,14 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
build_date=`date +%Y-%m-%d`
|
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
|
if [ -z "$branch" ] ; then
|
||||||
branch=unknown
|
branch=unknown
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user