@@AJAUTOMATION one question: i noticed that post tag we need to put inside each stage tag. single post tag under stages tag won't works
@AJAUTOMATION Жыл бұрын
@@rahulmiddha7687 most common use of post block is at the end of pipeline i.e after all the stages. However you can specify post block for every stage if you want to perform some action after end of that stage. just add after steps block stages { stage('Checkout') { steps { // Checkout code } } stage('Build') { steps { // Build the Maven project echo "build" } post { success { echo 'success actions here.' } failure { echo 'failure actions.' } } } post { //some action on success }