diff --git a/.ci/check-changelogs.groovy b/.ci/check-changelogs.groovy index 436e2eff257..131b4fcf5d3 100644 --- a/.ci/check-changelogs.groovy +++ b/.ci/check-changelogs.groovy @@ -12,7 +12,7 @@ pipeline { } options { timeout(time: 1, unit: 'HOURS') - buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20', daysToKeepStr: '30')) + buildDiscarder(logRotator(numToKeepStr: '100', artifactNumToKeepStr: '30', daysToKeepStr: '30')) timestamps() ansiColor('xterm') disableResume() diff --git a/.ci/jobs/apm-server-check-changelogs-mbp.yml b/.ci/jobs/apm-server-check-changelogs-mbp.yml index a29dc33dc63..cdd552c5c23 100644 --- a/.ci/jobs/apm-server-check-changelogs-mbp.yml +++ b/.ci/jobs/apm-server-check-changelogs-mbp.yml @@ -4,9 +4,6 @@ display-name: APM Server check changelogs MBP description: APM Server check changelogs MBP project-type: multibranch - view: APM-CI - number-to-keep: '5' - days-to-keep: '1' script-path: .ci/check-changelogs.groovy scm: - github: @@ -36,8 +33,8 @@ recursive: true parent-credentials: true timeout: 100 + reference-repo: /var/lib/jenkins/.git-references/apm-server.git timeout: '15' use-author: true wipe-workspace: 'True' periodic-folder-trigger: 1w - prune-dead-branches: true diff --git a/.ci/jobs/apm-server-mbp.yml b/.ci/jobs/apm-server-mbp.yml index 686096960b1..0db390fcf69 100644 --- a/.ci/jobs/apm-server-mbp.yml +++ b/.ci/jobs/apm-server-mbp.yml @@ -4,14 +4,11 @@ display-name: APM Server description: APM Server project-type: multibranch - view: APM-CI - number-to-keep: '5' - days-to-keep: '1' concurrent: true script-path: Jenkinsfile scm: - github: - branch-discovery: all + branch-discovery: no-pr discover-pr-forks-strategy: merge-current discover-pr-forks-trust: permission discover-pr-origin: merge-current @@ -41,8 +38,7 @@ recursive: true parent-credentials: true timeout: 100 + reference-repo: /var/lib/jenkins/.git-references/apm-server.git timeout: '15' use-author: true wipe-workspace: 'True' - periodic-folder-trigger: 1d - prune-dead-branches: true diff --git a/.ci/jobs/defaults.yml b/.ci/jobs/defaults.yml index 87aa2076a7b..89eb878dc57 100644 --- a/.ci/jobs/defaults.yml +++ b/.ci/jobs/defaults.yml @@ -8,10 +8,12 @@ ##### JOB DEFAULTS - job: + view: APM-CI logrotate: - daysToKeep: 30 numToKeep: 100 node: linux + periodic-folder-trigger: 1d + prune-dead-branches: true publishers: - email: recipients: infra-root+build@elastic.co diff --git a/Jenkinsfile b/Jenkinsfile index f3d79dada4b..62762d7b953 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { } options { timeout(time: 2, unit: 'HOURS') - buildDiscarder(logRotator(numToKeepStr: '20', artifactNumToKeepStr: '20', daysToKeepStr: '30')) + buildDiscarder(logRotator(numToKeepStr: '100', artifactNumToKeepStr: '30', daysToKeepStr: '30')) timestamps() ansiColor('xterm') disableResume()