Valid CJE Dumps shared by ExamDiscuss.com for Helping Passing CJE Exam! ExamDiscuss.com now offer the newest CJE exam dumps, the ExamDiscuss.com CJE exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CJE dumps with Test Engine here:
You have a stage called "Promote to Green," and you only want to run it when "development" is the current branch in a multibranch pipeline. How would you use the "when" declarative to accomplish this?
Correct Answer: A
Example: stage('Promote to Green') { agent { label 'apache' } when { branch 'development' } steps { sh "cp /var/www/html/rectangles/all/${env.BRANCH_NAME}/rectangle_${env.MAJOR_VERSION}.${e nv.BUILD_NUMBER}.jar /var/www/html/rectangles/green/rectangle_${env.MAJOR_VERSION}.${devBuild}.jar" } }