Change in osmo-ci[master]: ttcn3: block latest jobs while master is running

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Tue Jan 29 12:03:06 UTC 2019


osmith has submitted this change and it was merged. ( https://gerrit.osmocom.org/12709 )

Change subject: ttcn3: block latest jobs while master is running
......................................................................

ttcn3: block latest jobs while master is running

Jenkins job builder does not support string replacing in variables,
so the only way to make each ttcn3-foo-test-latest job get blocked by
their ttcn3-foo-test counterpart was specifying them each time.

Related: OS#3767
Change-Id: I124286d4b996e79a7b77603c7b59473b016c3bd5
---
M jobs/ttcn3-testsuites.yml
1 file changed, 25 insertions(+), 12 deletions(-)

Approvals:
  Max: Looks good to me, but someone else must approve
  daniel: Looks good to me, approved
  osmith: Verified



diff --git a/jobs/ttcn3-testsuites.yml b/jobs/ttcn3-testsuites.yml
index cd7aaa9..b7a3fd0 100644
--- a/jobs/ttcn3-testsuites.yml
+++ b/jobs/ttcn3-testsuites.yml
@@ -4,6 +4,8 @@
     concurrent: false
     disabled: false
     timer: "@midnight"
+    # Block *-latest for all master jobs (without suffix)
+    blocking: "^{job-name}.*"
     jobs:
       - "{job-name}"
     # Folders from docker-playground.git
@@ -33,17 +35,28 @@
           timer: 00 07 * * *
 
       # latest stable
-      - nplab-m3ua-test-latest
-      - nplab-sua-test-latest
-      - ttcn3-bsc-test-latest
-      - ttcn3-bsc-test-sccplite-latest
-      - ttcn3-bts-test-latest
-      - ttcn3-ggsn-test-latest
-      - ttcn3-hlr-test-latest
-      - ttcn3-mgw-test-latest
-      - ttcn3-msc-test-latest
-      - ttcn3-sgsn-test-latest
-      - ttcn3-sip-test-latest
+      - nplab-m3ua-test-latest:
+          blocking: "^nplab-m3ua-test.*"
+      - nplab-sua-test-latest:
+          blocking: "^nplab-sua-test.*"
+      - ttcn3-bsc-test-latest:
+          blocking: "^ttcn3-bsc-test.*"
+      - ttcn3-bsc-test-sccplite-latest:
+          blocking: "^ttcn3-bsc-test-sccplite.*"
+      - ttcn3-bts-test-latest:
+          blocking: "^ttcn3-bts-test.*"
+      - ttcn3-ggsn-test-latest:
+          blocking: "^ttcn3-ggsn-test.*"
+      - ttcn3-hlr-test-latest:
+          blocking: "^ttcn3-hlr-test.*"
+      - ttcn3-mgw-test-latest:
+          blocking: "^ttcn3-mgw-test.*"
+      - ttcn3-msc-test-latest:
+          blocking: "^ttcn3-msc-test.*"
+      - ttcn3-sgsn-test-latest:
+          blocking: "^ttcn3-sgsn-test.*"
+      - ttcn3-sip-test-latest:
+          blocking: "^ttcn3-sip-test.*"
 - job-template:
     name: '{job-name}'
     project-type: freestyle
@@ -107,7 +120,7 @@
     - build-blocker:
         use-build-blocker: true
         blocking-jobs:
-          - "^{job-name}.*"
+          - "{obj:blocking}"
     - build-discarder:
         days-to-keep: 30
         num-to-keep: 120

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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I124286d4b996e79a7b77603c7b59473b016c3bd5
Gerrit-Change-Number: 12709
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190129/cecaedbc/attachment.htm>


More information about the gerrit-log mailing list