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' }
|
agent { label 'docker' }
|
||||||
options {
|
options {
|
||||||
buildDiscarder(logRotator(numToKeepStr: '2'))
|
buildDiscarder(logRotator(numToKeepStr: '3'))
|
||||||
}
|
}
|
||||||
triggers {
|
triggers {
|
||||||
cron('@monthly')
|
cron('@monthly')
|
||||||
@@ -23,7 +23,7 @@ pipeline {
|
|||||||
stage('build') {
|
stage('build') {
|
||||||
options {
|
options {
|
||||||
ansiColor('xterm')
|
ansiColor('xterm')
|
||||||
timeout(5)
|
timeout(10)
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
dir(WORKDIR) {
|
dir(WORKDIR) {
|
||||||
@@ -62,21 +62,15 @@ pipeline {
|
|||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
emailext attachLog: true,
|
emailext attachLog: true,
|
||||||
body: "Job completed: \n ${JOB_URL}",
|
to: ${DEFAULT_RECIPIENTS}
|
||||||
subject: "Jenkins: Job: $JOB_NAME $BUILD_DISPLAY_NAME",
|
|
||||||
to: 'r_morgan@sympatico.ca'
|
|
||||||
}
|
}
|
||||||
unsuccessful {
|
unsuccessful {
|
||||||
emailext attachLog: true,
|
emailext attachLog: true,
|
||||||
body: "Job failed to complete: \n ${JOB_URL}",
|
to: ${DEFAULT_RECIPIENTS}
|
||||||
subject: "Jenkins: Job Failed: $JOB_NAME $BUILD_DISPLAY_NAME ",
|
|
||||||
to: 'r_morgan@sympatico.ca'
|
|
||||||
}
|
}
|
||||||
changed {
|
changed {
|
||||||
emailext attachLog: true,
|
emailext attachLog: true,
|
||||||
body: 'Job failed to complete:',
|
to: ${DEFAULT_RECIPIENTS}
|
||||||
subject: "Jenkins: Job Failed: $JOB_NAME $BUILD_DISPLAY_NAME",
|
|
||||||
to: 'r_morgan@sympatico.ca'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user