summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 75ed55f..4e7387c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -80,6 +80,11 @@ pipeline {
node 'sys-rhel7-x64'
}
+ options {
+ buildDiscarder(logRotator(numToKeepStr: '3'))
+ disableConcurrentBuilds()
+ }
+
triggers {
pollSCM('H * * * *')
}
@@ -106,8 +111,13 @@ pipeline {
}
post {
- always {
- emailext to: 'kraxel@gmail.com', subject: "", body: "", attachLog: true
+ failure {
+ emailext([
+ to: 'kraxel@gmail.com',
+ subject: "${JOB_NAME} - Build #${BUILD_NUMBER} - FAILED!",
+ body: "${BUILD_URL}\n",
+ attachLog: true,
+ ])
}
}
}