]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Use .gitreview to default BRANCH_NAME.
authorCorey Farrell <git@cfware.com>
Wed, 12 Sep 2018 17:39:23 +0000 (13:39 -0400)
committerCorey Farrell <git@cfware.com>
Thu, 13 Sep 2018 00:12:01 +0000 (19:12 -0500)
This ensures that binary modules are avoided in the master branch even
if BRANCH_NAME is not set.

Change-Id: I79162d2063f22fa9d6b31fde4827ace2dd5bf0da

tests/CI/buildAsterisk.sh

index b36e7de6c4c13b8477c4bf467e51ac061b5dab45..d9c86784340336af859b288c7cefea7119cf1ab3 100755 (executable)
@@ -6,6 +6,10 @@ REF_DEBUG=0
 DISABLE_BINARY_MODULES=0
 source $CIDIR/ci.functions
 
+if [ -z $BRANCH_NAME ]; then
+       BRANCH_NAME=$(git config -f .gitreview --get gerrit.defaultbranch)
+fi
+
 gen_cats() {
        set +x
        action=$1