osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/38319?usp=email )

Change subject: jobs/master-builds: add param BRANCH
......................................................................

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(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve




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 https://gerrit.osmocom.org/c/osmo-ci/+/38319?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I5fb64024dc4ad70cb3dd019bd505aacc58d14380
Gerrit-Change-Number: 38319
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to