Jenkins: Add a global build timeout

Prepares migration to oss.cloudogu.com.
There, we're recognized some builds that hang for hours after some
errors.
This commit is contained in:
Johannes Schnatterer
2018-09-12 18:01:00 +02:00
parent f9a9a94a3f
commit 2c752f9e8b

5
Jenkinsfile vendored
View File

@@ -11,9 +11,11 @@ node() { // No specific label
properties([
// Keep only the last 10 build to preserve space
buildDiscarder(logRotator(numToKeepStr: '10')),
buildDiscarder(logRotator(numToKeepStr: '10'))
])
timeout(activity: true, time: 20, unit: 'MINUTES') {
catchError {
Maven mvn = setupMavenBuild()
@@ -51,6 +53,7 @@ node() { // No specific label
warnings consoleParsers: [[parserName: 'Maven']], canRunOnFailed: true
mailIfStatusChanged(commitAuthorEmail)
}
}
String mainBranch