Adjust filename for attachments. Add email ext to README.
This commit is contained in:
parent
591cc0d31a
commit
f9de2f145e
|
@ -250,6 +250,7 @@ pipeline {
|
||||||
mv "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}" "${AGENT_ROOT_FOLDER}/settings.xml"
|
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
|
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 .
|
cp ${AGENT_ROOT_FOLDER}/build_commits.${PIPELINE_BUILD_NUMBER}.csv .
|
||||||
|
cat */${PIPELINE_BUILD_NUMBER}.csv | echo
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
echo 'The default maven settings have been restored'
|
echo 'The default maven settings have been restored'
|
||||||
|
@ -257,7 +258,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
success {
|
success {
|
||||||
echo 'The pipeline worked!'
|
echo 'The pipeline worked!'
|
||||||
emailext attachmentsPattern: "**/${PIPELINE_BUILD_NUMBER}.csv",
|
emailext attachmentsPattern: "**/*.${PIPELINE_BUILD_NUMBER}.csv",
|
||||||
to: 'jenkinsbuilds@d4science.org',
|
to: 'jenkinsbuilds@d4science.org',
|
||||||
subject: "[Jenkins build D4S] build ${currentBuild.fullDisplayName} worked",
|
subject: "[Jenkins build D4S] build ${currentBuild.fullDisplayName} worked",
|
||||||
body: "Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}"
|
body: "Build time: ${currentBuild.durationString}. See ${env.BUILD_URL}"
|
||||||
|
|
|
@ -8,7 +8,8 @@ Jenkins Pipeline script to manage a complete gCube release.
|
||||||
* [Pipeline: Maven](https://plugins.jenkins.io/pipeline-maven)
|
* [Pipeline: Maven](https://plugins.jenkins.io/pipeline-maven)
|
||||||
* [Pipeline: Basic Steps](https://plugins.jenkins.io/workflow-basic-steps)
|
* [Pipeline: Basic Steps](https://plugins.jenkins.io/workflow-basic-steps)
|
||||||
* [Kubernetes](https://plugins.jenkins.io/kubernetes) (for the YAML parser)
|
* [Kubernetes](https://plugins.jenkins.io/kubernetes) (for the YAML parser)
|
||||||
* [NodeLabelParameter](https://plugins.jenkins.io/nodelabelparameter) (The node and label parameter plugin allows to dynamically select the node on which a job should be executed.)
|
* [NodeLabelParameter](https://plugins.jenkins.io/nodelabelparameter) (to allow to dynamically select the node on which a job should be executed)
|
||||||
|
* [Email Extension](https://plugins.jenkins.io/email-ext) (to send emails with attachments)
|
||||||
* Jenkins configured with a JDK global tool named 'OpenJDK 8'
|
* Jenkins configured with a JDK global tool named 'OpenJDK 8'
|
||||||
* Jenkins configured with a Maven global tool named 'Maven 3.6.2'
|
* Jenkins configured with a Maven global tool named 'Maven 3.6.2'
|
||||||
* One or more Jenkins agents labeled as 'CD'
|
* One or more Jenkins agents labeled as 'CD'
|
||||||
|
|
Loading…
Reference in New Issue