Add steps block around the post-action.
This commit is contained in:
parent
0e535ee1f5
commit
b66becd978
|
@ -196,9 +196,11 @@ pipeline {
|
||||||
// post-build actions
|
// post-build actions
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
// restore the default maven settings
|
steps {
|
||||||
mv "${agent_root_folder}/settings.${PIPELINE_BUILD_NUMBER}" "${agent_root_folder}/settings.xml"
|
// restore the default maven settings
|
||||||
echo 'The default maven settings have been restored'
|
mv "${agent_root_folder}/settings.${PIPELINE_BUILD_NUMBER}" "${agent_root_folder}/settings.xml"
|
||||||
|
echo 'The default maven settings have been restored'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
success {
|
success {
|
||||||
echo 'The pipeline worked!'
|
echo 'The pipeline worked!'
|
||||||
|
|
Loading…
Reference in New Issue