Add steps block around the post-action.

This commit is contained in:
Manuele Simi 2019-10-10 10:58:50 -04:00
parent 0e535ee1f5
commit b66becd978
1 changed files with 5 additions and 3 deletions

2
Jenkinsfile vendored
View File

@ -196,10 +196,12 @@ pipeline {
// post-build actions // post-build actions
post { post {
always { always {
steps {
// restore the default maven settings // restore the default maven settings
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"
echo 'The default maven settings have been restored' echo 'The default maven settings have been restored'
} }
}
success { success {
echo 'The pipeline worked!' echo 'The pipeline worked!'
} }