Update timeouts in Jenkinsfile, and add emailing results, for xaibox build

This commit is contained in:
2020-06-14 22:13:44 -04:00
parent 2fccf1f7c6
commit 59c7c862c4

View File

@@ -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}
}
}