Merge "CI: Add timestamps and timeouts to jenkinsfiles"

This commit is contained in:
Jenkins2
2018-10-04 12:50:18 -05:00
committed by Gerrit Code Review
4 changed files with 16 additions and 0 deletions

View File

@@ -11,6 +11,10 @@
* you can't do that in a delcarative pipeline.
*/
pipeline {
options {
timestamps
timeout(time: 60, unit: 'MINUTES')
}
triggers {
/*
* This trigger will match either the "asterisk" or "Security-asterisk"

View File

@@ -11,6 +11,10 @@
* you can't do that in a delcarative pipeline.
*/
pipeline {
options {
timestamps()
timeout(time: 3, unit: 'HOURS')
}
triggers {
cron 'H H(0-4) * * *'
}

View File

@@ -11,6 +11,10 @@
* you can't do that in a delcarative pipeline.
*/
pipeline {
options {
timestamps()
timeout(time: 1, unit: 'DAYS')
}
triggers {
cron 'H H(0-4) * * 0'
}

View File

@@ -11,6 +11,10 @@
* you can't do that in a delcarative pipeline.
*/
pipeline {
options {
timestamps()
timeout(time: 30, unit: 'MINUTES')
}
triggers {
/*
* This trigger will match either the "asterisk" or "Security-asterisk"