[Asterisk-code-review] CI: Use .gitreview to default BRANCH NAME. (asterisk[15])
Jenkins2
asteriskteam at digium.com
Thu Sep 13 08:57:43 CDT 2018
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/10130 )
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(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/tests/CI/buildAsterisk.sh b/tests/CI/buildAsterisk.sh
index b36e7de..d9c8678 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/10130
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I79162d2063f22fa9d6b31fde4827ace2dd5bf0da
Gerrit-Change-Number: 10130
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180913/e67522e7/attachment.html>
More information about the asterisk-code-review
mailing list