Add a build discarder and a timeout to the Jenkinsfile.
This commit is contained in:
parent
4b8c4ae165
commit
7575bee975
|
@ -1,6 +1,10 @@
|
|||
pipeline {
|
||||
agent any
|
||||
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '48', artifactNumToKeepStr: '96'))
|
||||
timeout(time: 8, unit: 'MINUTES')
|
||||
}
|
||||
triggers {
|
||||
pollSCM('*/10 * * * *')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue