Fixed on master for jenkins buildslave
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5e717cbb Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5e717cbb Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5e717cbb Branch: refs/heads/ui-restyle Commit: 5e717cbb89d253ec6875da8e4a30c79effe53f96 Parents: fefddc0 Author: Hugo Trippaers <[email protected]> Authored: Wed Feb 19 16:21:43 2014 +0100 Committer: Hugo Trippaers <[email protected]> Committed: Wed Feb 19 16:21:43 2014 +0100 ---------------------------------------------------------------------- tools/appliance/build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5e717cbb/tools/appliance/build.sh ---------------------------------------------------------------------- diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh index 658aa8d..7ba0611 100644 --- a/tools/appliance/build.sh +++ b/tools/appliance/build.sh @@ -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
