Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- finally {
- println "finally"
- showDockerLogs()
- testResultLogstash()
- def causes = currentBuild.rawBuild.getCauses()
- for(cause in causes) {
- if(cause.properties.shortDescription =~ 'Started by user') {
- emailext body: "Jenkins CI \n Current result: ${currentBuild.result}" ,
- recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],
- subject: 'Jenkins CI GIT Branch: ${GIT_BRANCH} ',
- to: env['committerEmail']
- break
- }
- }
- }
Add Comment
Please, Sign In to add comment