From 58622a87f474d3392ca757644ac980e9682e842f 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 1f161d756c..528a63c043 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 8c97379e07..c6412fdef1 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 1fa86884d2..ff2d84f3a2 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 8cf9f4ac59..239b32e9e2 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" -- 2.47.2