add jenkins timeouts

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-10-30 10:38:52 +01:00
parent f53c4c275e
commit 8199211e4d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
5 changed files with 23 additions and 8 deletions

View File

@ -2,10 +2,13 @@ pipeline {
agent { label 'linux' }
options {
/* Prevent Jenkins jobs from running forever */
timeout(time: 25, unit: 'MINUTES')
/* Limit builds retained */
buildDiscarder(logRotator(
numToKeepStr: '60',
numToKeepStr: '90',
daysToKeepStr: '30',
artifactNumToKeepStr: '60',
artifactNumToKeepStr: '90',
))
}

View File

@ -3,6 +3,9 @@ pipeline {
options {
disableConcurrentBuilds()
/* Prevent Jenkins jobs from running forever */
timeout(time: 25, unit: 'MINUTES')
/* Limit builds retained */
buildDiscarder(logRotator(
numToKeepStr: '10',
daysToKeepStr: '30',

View File

@ -2,10 +2,13 @@ pipeline {
agent { label 'fastlane' }
options {
/* Prevent Jenkins jobs from running forever */
timeout(time: 25, unit: 'MINUTES')
/* Limit builds retained */
buildDiscarder(logRotator(
numToKeepStr: '30',
numToKeepStr: '60',
daysToKeepStr: '30',
artifactNumToKeepStr: '30',
artifactNumToKeepStr: '60',
))
}

View File

@ -15,10 +15,13 @@ pipeline {
}
options {
/* Prevent Jenkins jobs from running forever */
timeout(time: 25, unit: 'MINUTES')
/* Limit builds retained */
buildDiscarder(logRotator(
numToKeepStr: '30',
numToKeepStr: '60',
daysToKeepStr: '30',
artifactNumToKeepStr: '30',
artifactNumToKeepStr: '60',
))
}

View File

@ -2,10 +2,13 @@ pipeline {
agent { label 'macos' }
options {
/* Prevent Jenkins jobs from running forever */
timeout(time: 25, unit: 'MINUTES')
/* Limit builds retained */
buildDiscarder(logRotator(
numToKeepStr: '30',
numToKeepStr: '60',
daysToKeepStr: '30',
artifactNumToKeepStr: '30',
artifactNumToKeepStr: '60',
))
}