Update timeouts in Jenkinsfile, and add emailing results, for xaibox build
This commit is contained in:
29
dockerfiles/services/nextcloud/Jenkinsfile
vendored
29
dockerfiles/services/nextcloud/Jenkinsfile
vendored
@@ -9,7 +9,7 @@ pipeline {
|
||||
buildDiscarder(logRotator(numToKeepStr: '2'))
|
||||
}
|
||||
triggers {
|
||||
cron('@weekly')
|
||||
cron('@monthly')
|
||||
}
|
||||
|
||||
stages {
|
||||
@@ -23,7 +23,7 @@ pipeline {
|
||||
stage('build') {
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
timeout(2)
|
||||
timeout(5)
|
||||
}
|
||||
steps {
|
||||
dir(WORKDIR) {
|
||||
@@ -38,7 +38,7 @@ pipeline {
|
||||
stage('deploy') {
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
timeout(2)
|
||||
timeout(5)
|
||||
}
|
||||
steps {
|
||||
dir(WORKDIR) {
|
||||
@@ -51,7 +51,7 @@ pipeline {
|
||||
failure {
|
||||
dir(WORKDIR) {
|
||||
withDockerRegistry(credentialsId: 'b11d7f1a-81ac-4daf-8842-56afc0d2370e', url: 'http://dkregistry.xai-corp.net:5000') {
|
||||
sh "xai rollback"
|
||||
// sh "xai rollback"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,4 +59,25 @@ 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'
|
||||
}
|
||||
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'
|
||||
}
|
||||
changed {
|
||||
emailext attachLog: true,
|
||||
body: 'Job failed to complete:',
|
||||
subject: "Jenkins: Job Failed: $JOB_NAME $BUILD_DISPLAY_NAME",
|
||||
to: 'r_morgan@sympatico.ca'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user