Adjust the subject of emails.
This commit is contained in:
parent
375ff075e1
commit
f897c5ac3c
|
@ -95,7 +95,6 @@ pipeline {
|
||||||
echo "Create a fresh local repository"
|
echo "Create a fresh local repository"
|
||||||
rm -rf $MAVEN_LOCAL_REPO
|
rm -rf $MAVEN_LOCAL_REPO
|
||||||
mkdir -p $MAVEN_LOCAL_REPO
|
mkdir -p $MAVEN_LOCAL_REPO
|
||||||
// default the selected maven settings
|
|
||||||
mv "${AGENT_ROOT_FOLDER}/settings.xml" "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}"
|
mv "${AGENT_ROOT_FOLDER}/settings.xml" "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}"
|
||||||
cp "${AGENT_ROOT_FOLDER}/${MAVEN_SETTINGS_FILE}" "${AGENT_ROOT_FOLDER}/settings.xml"
|
cp "${AGENT_ROOT_FOLDER}/${MAVEN_SETTINGS_FILE}" "${AGENT_ROOT_FOLDER}/settings.xml"
|
||||||
echo "Done with local repository"
|
echo "Done with local repository"
|
||||||
|
@ -208,13 +207,13 @@ pipeline {
|
||||||
success {
|
success {
|
||||||
echo 'The pipeline worked!'
|
echo 'The pipeline worked!'
|
||||||
mail to: 'jenkinsbuilds@d4science.org',
|
mail to: 'jenkinsbuilds@d4science.org',
|
||||||
subject: "gCube pipeline worked: ${currentBuild.fullDisplayName}",
|
subject: "gCube pipeline worked: ${currentBuild.fullDisplayName} worked1",
|
||||||
body: "Something is wrong with ${env.BUILD_URL}"
|
body: "See ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
echo 'The pipeline has failed'
|
echo 'The pipeline has failed'
|
||||||
mail to: 'jenkinsbuilds@d4science.org',
|
mail to: 'jenkinsbuilds@d4science.org',
|
||||||
subject: "gCube pipeline has failed: ${currentBuild.fullDisplayName}",
|
subject: "${currentBuild.fullDisplayName} has failed",
|
||||||
body: "Something is wrong with ${env.BUILD_URL}"
|
body: "Something is wrong with ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue