From 8dd54c9a73e15054fac3e7702d03cf570833b88a Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 4 Apr 2018 10:29:46 +0200 Subject: add options, update email --- Jenkinsfile | 14 ++++++++++++-- 1 file 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, + ]) } } } -- cgit