Merge pull request #53389 from bryceml/2019.2.1

only keep last 10 builds of every pr on jenkins to reduce disk usage
This commit is contained in:
Daniel Wozniak 2019-06-10 10:18:46 -07:00 committed by GitHub
commit 6b800a2b91
15 changed files with 28 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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -47,6 +48,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -46,6 +47,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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
],
@ -46,6 +47,7 @@ timeout(time: global_timeout, unit: 'HOURS') {
try {
// Setup the kitchen required bundle
stage('setup-bundle') {
sh 'git fetch --no-tags https://github.com/saltstack/salt.git +refs/heads/${CHANGE_TARGET}:refs/remotes/origin/${CHANGE_TARGET}'
sh 'bundle install --with ec2 windows --without docker macos opennebula vagrant'
}
try {

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"