osmith has uploaded this change for review.

View Change

jobs/master-builds: add param BRANCH

Sometimes it is desirable to run master jobs from a different branch:
* As discussed with Philipp: running pysim CI on a branch with many
patches once before submitting to gerrit (it takes much longer in
gerrit to run on each individual patch)
* When adding/modifying master jobs to test if they still work as
expected with additional patches in a branch.

It is undesirable to have mail notifications if not running on master,
the next patch will make it easy to disable those.

Change-Id: I5fb64024dc4ad70cb3dd019bd505aacc58d14380
---
M jobs/master-builds.yml
1 file changed, 10 insertions(+), 5 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/19/38319/1
diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index 730c68c..ee6947f 100644
--- a/jobs/master-builds.yml
+++ b/jobs/master-builds.yml
@@ -74,16 +74,14 @@
gerrit_url: 'https://gerrit.osmocom.org'
gitea_url: 'https://gitea.osmocom.org'
repos_url: '{gerrit_url}/{repos}'
- branches:
- - master
+ branch: master
ssh:
- docs_ftp.osmocom.org

# in alphabetical order
repos:
- asn1c:
- branches:
- - osmo-iuh/master
+ branch: osmo-iuh/master

- libasn1c:
# Full triggers would be:
@@ -632,10 +630,17 @@
name: '{obj:a4_name}'
values: '{obj:a4}'

+ parameters:
+ - string:
+ name: BRANCH
+ description: git branch
+ default: '{obj:branch}'
+
scm:
- git:
url: '{obj:repos_url}'
- branches: '{obj:branches}'
+ branches:
+ - '$BRANCH'
refspec:
name:
wipe-workspace: false

To view, visit change 38319. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I5fb64024dc4ad70cb3dd019bd505aacc58d14380
Gerrit-Change-Number: 38319
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>