diff options
author | Stefan Seelmann <mail@stefan-seelmann.de> | 2019-06-23 10:45:32 +0300 |
---|---|---|
committer | Stefan Seelmann <mail@stefan-seelmann.de> | 2019-06-23 10:45:32 +0300 |
commit | 508b70bb2d77005a8cc6fd30aff792b10925d4b8 (patch) | |
tree | e5cdf86402b84f6052777149be2a2f46f7dbb15a | |
parent | ac98d871167ca58e5584b2479e159913abb13ded (diff) |
Tune Jenkins pipeline: retry stages, notification when fixed
-rw-r--r-- | Jenkinsfile | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index edd2d59f8..6d275b33f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ pipeline { agent none options { - buildDiscarder(logRotator(numToKeepStr: '3')) + buildDiscarder(logRotator(numToKeepStr: '10')) timeout(time: 8, unit: 'HOURS') } triggers { @@ -30,6 +30,7 @@ pipeline { stage ('Debug') { options { timeout(time: 1, unit: 'HOURS') + retry(1) } agent { docker { @@ -51,7 +52,8 @@ pipeline { parallel { stage ('Linux Java 8') { options { - timeout(time: 2, unit: 'HOURS') + timeout(time: 4, unit: 'HOURS') + retry(1) } agent { docker { @@ -73,7 +75,8 @@ pipeline { } stage ('Linux Java 11') { options { - timeout(time: 2, unit: 'HOURS') + timeout(time: 4, unit: 'HOURS') + retry(1) } agent { docker { @@ -95,7 +98,8 @@ pipeline { } stage ('Windows Java 8') { options { - timeout(time: 2, unit: 'HOURS') + timeout(time: 4, unit: 'HOURS') + retry(1) } agent { label 'Windows' @@ -125,6 +129,11 @@ pipeline { subject: "Jenkins pipeline failed: ${currentBuild.fullDisplayName}", body: "Jenkins build URL: ${env.BUILD_URL}" } + fixed { + mail to: 'notifications@directory.apache.org', + subject: "Jenkins pipeline fixed: ${currentBuild.fullDisplayName}", + body: "Jenkins build URL: ${env.BUILD_URL}" + } } } |