include the log as attachment to mail

This commit is contained in:
Clemens Lauermann 2020-04-16 17:01:45 +02:00
parent 57f1eb1ac5
commit dd23a85916

2
Jenkinsfile vendored
View File

@ -68,7 +68,7 @@ pipeline {
} }
post { post {
always { always {
emailext attachLog: true, attachmentsPattern: 'diplomarbeit.pdf', emailext attachLog: true, attachmentsPattern: 'diplomarbeit.pdf*',
body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}", body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}",
recipientProviders: [requestor()], recipientProviders: [requestor()],
subject: "Jenkins Diplomarbeit Build ${currentBuild.currentResult}" subject: "Jenkins Diplomarbeit Build ${currentBuild.currentResult}"