Adjust email attachments.
This commit is contained in:
parent
1f0de2eaa0
commit
591cc0d31a
|
@ -249,6 +249,7 @@ pipeline {
|
|||
sh '''
|
||||
mv "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}" "${AGENT_ROOT_FOLDER}/settings.xml"
|
||||
mv ${AGENT_ROOT_FOLDER}/build_commits.csv ${AGENT_ROOT_FOLDER}/build_commits.${PIPELINE_BUILD_NUMBER}.csv
|
||||
cp ${AGENT_ROOT_FOLDER}/build_commits.${PIPELINE_BUILD_NUMBER}.csv .
|
||||
'''
|
||||
}
|
||||
echo 'The default maven settings have been restored'
|
||||
|
@ -256,7 +257,7 @@ pipeline {
|
|||
}
|
||||
success {
|
||||
echo 'The pipeline worked!'
|
||||
emailext attachmentsPattern: "${AGENT_ROOT_FOLDER}/build_commits.${PIPELINE_BUILD_NUMBER}.csv",
|
||||
emailext attachmentsPattern: "**/${PIPELINE_BUILD_NUMBER}.csv",
|
||||
to: 'jenkinsbuilds@d4science.org',
|
||||
subject: "[Jenkins build D4S] build ${currentBuild.fullDisplayName} worked",
|
||||
body: "Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}"
|
||||
|
|
Loading…
Reference in New Issue