only keep last 10 builds of every pr on jenkins to reduce disk usage

This commit is contained in:
Bryce Larson 2019-06-05 16:37:32 -06:00
parent d0810d78ad
commit ccc61060a0
No known key found for this signature in database
GPG Key ID: 131C38B0F02DB4CA
15 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,7 @@ pipeline {
timestamps()
ansiColor('xterm')
timeout(time: 2, unit: 'HOURS')
buildDiscarder(logRotator(numToKeepStr: '10'))
}
environment {
PYENV_ROOT = "/usr/local/pyenv"

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 6
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 8
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -5,6 +5,7 @@ def testrun_timeout = 8
def global_timeout = testrun_timeout + 1;
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
[
$class: 'ScannerJobProperty', doNotScan: false
],

View File

@ -4,6 +4,7 @@ pipeline {
timestamps()
ansiColor('xterm')
timeout(time: 3, unit: 'HOURS')
buildDiscarder(logRotator(numToKeepStr: '10'))
}
environment {
PYENV_ROOT = "/usr/local/pyenv"