Update timeouts in Jenkinsfile, and add emailing results, for xaibox build
This commit is contained in:
16
dockerfiles/services/nextcloud/Jenkinsfile
vendored
16
dockerfiles/services/nextcloud/Jenkinsfile
vendored
@@ -6,7 +6,7 @@ pipeline {
|
||||
|
||||
agent { label 'docker' }
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '2'))
|
||||
buildDiscarder(logRotator(numToKeepStr: '3'))
|
||||
}
|
||||
triggers {
|
||||
cron('@monthly')
|
||||
@@ -23,7 +23,7 @@ pipeline {
|
||||
stage('build') {
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
timeout(5)
|
||||
timeout(10)
|
||||
}
|
||||
steps {
|
||||
dir(WORKDIR) {
|
||||
@@ -62,21 +62,15 @@ pipeline {
|
||||
post {
|
||||
always {
|
||||
emailext attachLog: true,
|
||||
body: "Job completed: \n ${JOB_URL}",
|
||||
subject: "Jenkins: Job: $JOB_NAME $BUILD_DISPLAY_NAME",
|
||||
to: 'r_morgan@sympatico.ca'
|
||||
to: ${DEFAULT_RECIPIENTS}
|
||||
}
|
||||
unsuccessful {
|
||||
emailext attachLog: true,
|
||||
body: "Job failed to complete: \n ${JOB_URL}",
|
||||
subject: "Jenkins: Job Failed: $JOB_NAME $BUILD_DISPLAY_NAME ",
|
||||
to: 'r_morgan@sympatico.ca'
|
||||
to: ${DEFAULT_RECIPIENTS}
|
||||
}
|
||||
changed {
|
||||
emailext attachLog: true,
|
||||
body: 'Job failed to complete:',
|
||||
subject: "Jenkins: Job Failed: $JOB_NAME $BUILD_DISPLAY_NAME",
|
||||
to: 'r_morgan@sympatico.ca'
|
||||
to: ${DEFAULT_RECIPIENTS}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user