From 9439c6c1d666b12b9c19df214d0609931a8f477c Mon Sep 17 00:00:00 2001 From: Clemens Lauermann Date: Sun, 19 Apr 2020 11:11:37 +0200 Subject: [PATCH] fix attachment path --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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}" + } } } }