diff --git a/Jenkinsfile b/Jenkinsfile index 4456e85..f67dde9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -108,10 +108,12 @@ pipeline { } } } - emailext attachmentsPattern: "${env.GIT_PATH}diplomarbeit.pdf*", - to: "${env.RECIPIENTS}", - subject: "[${currentBuild.currentResult}] Diplomarbeit Build #${env.BUILD_NUMBER}", - body: "Job ${env.JOB_NAME}: ${env.JOB_URL}" + dir(env.GIT_PATH) { + emailext attachmentsPattern: "diplomarbeit.pdf*", + to: "${env.RECIPIENTS}", + subject: "[${currentBuild.currentResult}] Diplomarbeit Build #${env.BUILD_NUMBER}", + body: "Job ${env.JOB_NAME}: ${env.JOB_URL}" + } } } }