[Asterisk-code-review] CI: Use .gitreview to default BRANCH NAME. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Wed Sep 12 12:42:35 CDT 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/10121


Change subject: CI: Use .gitreview to default BRANCH_NAME.
......................................................................

CI: Use .gitreview to default BRANCH_NAME.

This ensures that binary modules are avoided in the master branch even
if BRANCH_NAME is not set.

Change-Id: I79162d2063f22fa9d6b31fde4827ace2dd5bf0da
---
M tests/CI/buildAsterisk.sh
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/21/10121/1

diff --git a/tests/CI/buildAsterisk.sh b/tests/CI/buildAsterisk.sh
index 992dc94..b974629 100755
--- a/tests/CI/buildAsterisk.sh
+++ b/tests/CI/buildAsterisk.sh
@@ -6,6 +6,10 @@
 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

-- 
To view, visit https://gerrit.asterisk.org/10121
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I79162d2063f22fa9d6b31fde4827ace2dd5bf0da
Gerrit-Change-Number: 10121
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180912/f713de11/attachment.html>


More information about the asterisk-code-review mailing list