From 1598c7a3066622ee07e28fdaa423dcdc0582fea7 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Thu, 4 Oct 2018 09:13:22 -0600 Subject: [PATCH] CI: Add timestamps and timeouts to jenkinsfiles Change-Id: Ide83574dc957bc1df28e30a69079140050dfc35f --- tests/CI/gates.jenkinsfile | 4 ++++ tests/CI/periodics-daily.jenkinsfile | 4 ++++ tests/CI/ref_debug.jenkinsfile | 4 ++++ tests/CI/unittests.jenkinsfile | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile index e119f3c7aa..ad1185cc56 100644 --- a/tests/CI/gates.jenkinsfile +++ b/tests/CI/gates.jenkinsfile @@ -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" diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile index 3f3b7ab24c..dcd53cdde9 100644 --- a/tests/CI/periodics-daily.jenkinsfile +++ b/tests/CI/periodics-daily.jenkinsfile @@ -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) * * *' } diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile index d9871d315a..7b485859cc 100644 --- a/tests/CI/ref_debug.jenkinsfile +++ b/tests/CI/ref_debug.jenkinsfile @@ -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' } diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile index ed937f23da..bdd517dc82 100644 --- a/tests/CI/unittests.jenkinsfile +++ b/tests/CI/unittests.jenkinsfile @@ -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"