[PATCH] osmo-ci[master]: jobs: gerrit, master, update-osmo-ci: fix build-discarder se...

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Sat Dec 9 00:11:37 UTC 2017


Review at  https://gerrit.osmocom.org/5240

jobs: gerrit, master, update-osmo-ci: fix build-discarder section

The build-discarder section was silently not working. It needs to be nested
below a 'properties' node.

Change-Id: I9503200a8873e616f9195d4bb1d6163c464b305e
---
M jobs/gerrit-verifications.yml
M jobs/master-builds.yml
M jobs/update-osmo-ci-on-slaves.yml
3 files changed, 16 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/40/5240/1

diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml
index da80e62..a64fb3a 100644
--- a/jobs/gerrit-verifications.yml
+++ b/jobs/gerrit-verifications.yml
@@ -187,11 +187,12 @@
     concurrent: '{obj:concurrent}'
     disabled: '{obj:disabled}'
     retry-count: 3 # scm checkout
-    build-discarder:
-      daysToKeep: 30
-      numToKeep: 120
-      artifactDaysToKeep: -1
-      artifactNumToKeep: -1
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 120
+          artifact-days-to-keep: -1
+          artifact-num-to-keep: -1
     description: |
       Pending gerrit code reviews of
       <a href="https://gerrit.osmocom.org/#/q/status:open+project:{repos}">{repos}</a>
diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index b127069..ece5f33 100644
--- a/jobs/master-builds.yml
+++ b/jobs/master-builds.yml
@@ -271,11 +271,12 @@
     concurrent: '{obj:concurrent}'
     disabled: '{obj:disabled}'
     retry-count: 3 # scm checkout
-    build-discarder:
-      daysToKeep: 30
-      numToKeep: 120
-      artifactDaysToKeep: -1
-      artifactNumToKeep: -1
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 120
+          artifact-days-to-keep: -1
+          artifact-num-to-keep: -1
     description: |
       Automatic jenkins test job of
       <a href="http://git.osmocom.org/{repos}">{repos}</a>
diff --git a/jobs/update-osmo-ci-on-slaves.yml b/jobs/update-osmo-ci-on-slaves.yml
index 0ec665e..efa6937 100644
--- a/jobs/update-osmo-ci-on-slaves.yml
+++ b/jobs/update-osmo-ci-on-slaves.yml
@@ -6,9 +6,10 @@
           type: slave
           name: label
           values: [ OsmocomBuild1 , build1-debian9-lxc ]
-    build-discarder:
-      daysToKeep: 30
-      numToKeep: 120
+    properties:
+      - build-discarder:
+          daysToKeep: 30
+          numToKeep: 120
     scm:
       - git:
           url: git://git.osmocom.org/osmo-ci

-- 
To view, visit https://gerrit.osmocom.org/5240
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9503200a8873e616f9195d4bb1d6163c464b305e
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list