jobs: tweak build-discarder values

Remove num-to-keep from most jobs, as this leads to keeping the build
logs for a much shorter timeline than desired. For example the
gerrit-binpkgs-deb job that runs for most projects when pushing patches
to jenkins reaches the 120 limit in less than 24h - and so when clicking
the link on a failed build from yesterday it is already deleted.

Instead just keep the logs for the last 30 days, no matter how many were
submitted on one day. Storing logs doesn't take up much space.

Remove the artifact-days-to-keep and artifact-num-to-keep lines, as they
don't have an effect. For jobs that do have artifacts, the actual value
is min(days-to-keep,artifact-days-to-keep) and same with num-to-keep.

While at it, increase the ttcn3-testsuites build-discarder to 120 days
as this means more data will show up in the test result analyzer at
which we look frequently.

Change-Id: Iec5c22c7fcf6c1fd2db71611045f15dc6580ed86
changes/17/31717/1
Oliver Smith 3 months ago
parent fdf3336f6c
commit 719ff97608

@ -22,7 +22,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 30
parameters:
- string:
name: BRANCH

@ -19,9 +19,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
description: |
{type} package job of CI for patches sent to
<a href="https://gerrit.osmocom.org">gerrit</a>

@ -16,9 +16,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
description: |
Lint job of CI for patches sent to <a href="https://gerrit.osmocom.org">gerrit</a>.
</br></br>

@ -15,9 +15,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
description: |
Run <code>struct_endianness.py</code> from libosmocore.git on patches
sent to <a href="https://gerrit.osmocom.org">gerrit</a>.

@ -15,9 +15,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
description: |
Send start and result comments to <a href="https://gerrit.osmocom.org">gerrit</a>.
</br></br>

@ -16,9 +16,6 @@
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:dahdi-linux">dahdi-linux</a>

@ -627,9 +627,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
description: |
Pipeline of CI for patches sent to
<a href="https://gerrit.osmocom.org/#/q/status:open+project:{repos}">{repos}</a>
@ -680,9 +677,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
description: |
Build job of CI for patches sent to
<a href="https://gerrit.osmocom.org/#/q/status:open+project:{repos}">{repos}</a>

@ -16,9 +16,6 @@
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="https://gerrit.osmocom.org/#/q/status:open+project:dahdi-linux">dahdi-linux</a>

@ -517,9 +517,6 @@
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="{git_base_url}/{repos}">{repos}</a>

@ -35,10 +35,7 @@
queue-scanning: DISABLED
use-build-blocker: false
- build-discarder:
artifact-days-to-keep: -1
artifact-num-to-keep: -1
days-to-keep: 30
num-to-keep: 120
- rebuild:
auto-rebuild: false
rebuild-disabled: false

@ -116,9 +116,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
wrappers:
- ansicolor:
colormap: xterm

@ -384,10 +384,7 @@
only-if-success: false
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
artifact-days-to-keep: -1
artifact-num-to-keep: -1
days-to-keep: 120
wrappers:
- ansicolor:
colormap: xterm

@ -18,7 +18,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
scm:
- git:
url: https://gerrit.osmocom.org/osmo-ci

@ -15,7 +15,6 @@
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 120
scm:
- git:
url: https://gerrit.osmocom.org/python/osmo-python-tests

Loading…
Cancel
Save