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