I want when some of the stages in the Jenkins pipeline get error then to have some options like asking for input, or print some message.
For example in this pipeline error is in the stage 2 by executing not existing 'shit' (sh 'asdasd')
node('master') {
try {
stage('stage1') {
echo 'stage 1 succeeeded'
}
stage('stage2') {
echo '1st task of stage 2 is cool'
// this is the ERROR
sh 'asdasd'
}
} finally {
echo 'SUCCESS'
}
}
My question is how ask for input IF error popup if some of the stages?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)