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
This commit is contained in:
Oliver Smith 2023-03-07 11:50:22 +01:00
parent fdf3336f6c
commit 719ff97608
14 changed files with 1 additions and 40 deletions

View File

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

View File

@ -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>

View File

@ -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>

View File

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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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