Added build discarder settings back (#6465)

builds are expired only after 14 days
This commit is contained in:
Waldemar Żurowski 2020-07-15 10:17:58 +01:00 committed by GitHub
parent ce146bdd59
commit ef9934ed4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 1 deletions

View File

@ -14,6 +14,7 @@ pipeline {
options {
timestamps()
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}
stages {
@ -35,4 +36,4 @@ pipeline {
deleteDir() /* clean up our workspace */
}
}
}
}

View File

@ -28,6 +28,7 @@ pipeline {
ansiColor('xterm')
timestamps()
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
/*
* a bit awkward to read

View File

@ -9,6 +9,7 @@ pipeline {
timestamps()
overrideIndexTriggers(false)
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}
triggers {
pollSCM ignorePostCommitHooks: true, scmpoll_spec: '@midnight'

View File

@ -8,6 +8,7 @@ pipeline {
options {
timestamps()
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}
environment {

View File

@ -12,6 +12,7 @@ pipeline {
ansiColor('xterm')
overrideIndexTriggers(false)
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}
triggers {

View File

@ -12,6 +12,7 @@ pipeline {
ansiColor('xterm')
overrideIndexTriggers(false)
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}
environment {

View File

@ -38,6 +38,7 @@ pipeline {
options {
timestamps()
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}
environment {

1
Jenkinsfile vendored
View File

@ -9,6 +9,7 @@ pipeline {
options {
timestamps()
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}
environment {