diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-04-04 10:29:46 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-04-04 10:29:46 +0200 |
commit | 8dd54c9a73e15054fac3e7702d03cf570833b88a (patch) | |
tree | 9b696c3a9f312eb8b4a613dcf5ed53de2bf3cf30 | |
parent | 644ffb611e76db09e35a2e83ba31f1dd719e1045 (diff) | |
download | seabios-8dd54c9a73e15054fac3e7702d03cf570833b88a.tar.gz |
add options, update email
-rw-r--r-- | Jenkinsfile | 14 |
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, + ]) } } } |