add jenkins timeouts
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
f53c4c275e
commit
8199211e4d
|
@ -2,10 +2,13 @@ pipeline {
|
||||||
agent { label 'linux' }
|
agent { label 'linux' }
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
/* Prevent Jenkins jobs from running forever */
|
||||||
|
timeout(time: 25, unit: 'MINUTES')
|
||||||
|
/* Limit builds retained */
|
||||||
buildDiscarder(logRotator(
|
buildDiscarder(logRotator(
|
||||||
numToKeepStr: '60',
|
numToKeepStr: '90',
|
||||||
daysToKeepStr: '30',
|
daysToKeepStr: '30',
|
||||||
artifactNumToKeepStr: '60',
|
artifactNumToKeepStr: '90',
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,9 @@ pipeline {
|
||||||
|
|
||||||
options {
|
options {
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
|
/* Prevent Jenkins jobs from running forever */
|
||||||
|
timeout(time: 25, unit: 'MINUTES')
|
||||||
|
/* Limit builds retained */
|
||||||
buildDiscarder(logRotator(
|
buildDiscarder(logRotator(
|
||||||
numToKeepStr: '10',
|
numToKeepStr: '10',
|
||||||
daysToKeepStr: '30',
|
daysToKeepStr: '30',
|
||||||
|
|
|
@ -2,10 +2,13 @@ pipeline {
|
||||||
agent { label 'fastlane' }
|
agent { label 'fastlane' }
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
/* Prevent Jenkins jobs from running forever */
|
||||||
|
timeout(time: 25, unit: 'MINUTES')
|
||||||
|
/* Limit builds retained */
|
||||||
buildDiscarder(logRotator(
|
buildDiscarder(logRotator(
|
||||||
numToKeepStr: '30',
|
numToKeepStr: '60',
|
||||||
daysToKeepStr: '30',
|
daysToKeepStr: '30',
|
||||||
artifactNumToKeepStr: '30',
|
artifactNumToKeepStr: '60',
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,13 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
/* Prevent Jenkins jobs from running forever */
|
||||||
|
timeout(time: 25, unit: 'MINUTES')
|
||||||
|
/* Limit builds retained */
|
||||||
buildDiscarder(logRotator(
|
buildDiscarder(logRotator(
|
||||||
numToKeepStr: '30',
|
numToKeepStr: '60',
|
||||||
daysToKeepStr: '30',
|
daysToKeepStr: '30',
|
||||||
artifactNumToKeepStr: '30',
|
artifactNumToKeepStr: '60',
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,13 @@ pipeline {
|
||||||
agent { label 'macos' }
|
agent { label 'macos' }
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
/* Prevent Jenkins jobs from running forever */
|
||||||
|
timeout(time: 25, unit: 'MINUTES')
|
||||||
|
/* Limit builds retained */
|
||||||
buildDiscarder(logRotator(
|
buildDiscarder(logRotator(
|
||||||
numToKeepStr: '30',
|
numToKeepStr: '60',
|
||||||
daysToKeepStr: '30',
|
daysToKeepStr: '30',
|
||||||
artifactNumToKeepStr: '30',
|
artifactNumToKeepStr: '60',
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue