mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-29 01:26:13 +01:00
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:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user