From 59c7c862c4ba2733eaf0cb796242b66244918f3e Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 14 Jun 2020 22:13:44 -0400 Subject: [PATCH] Update timeouts in Jenkinsfile, and add emailing results, for xaibox build --- dockerfiles/services/nextcloud/Jenkinsfile | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/dockerfiles/services/nextcloud/Jenkinsfile b/dockerfiles/services/nextcloud/Jenkinsfile index 356aadb..bb0a8ef 100644 --- a/dockerfiles/services/nextcloud/Jenkinsfile +++ b/dockerfiles/services/nextcloud/Jenkinsfile @@ -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} } }