From b047b3672a0fae72c5c165fe6a48efe321cbb5ed Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Sun, 10 Sep 2017 23:26:41 +0200 Subject: [PATCH] Nightly build: include all branches in 'origin' remote This avoids having to manually edit the script when new maintenance branches are created after a new release. --- nightly-builds.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nightly-builds.sh b/nightly-builds.sh index 82f3dd3..2d9c4da 100755 --- a/nightly-builds.sh +++ b/nightly-builds.sh @@ -15,7 +15,8 @@ # # Comma-delimited list of branches to process -branches='master,master-2.3,master-2.2,master-1.3.x' +# Default will include all the branches present in the 'origin' remote +branches=$(git ls-remote --heads origin | cut -d/ -f3 | paste -d, --serial) # Where to save the builds pathBuilds=/srv/www/builds