CloudBees Certified Jenkins Engineer (CJE) CJE Question # 30 Topic 4 Discussion

CloudBees Certified Jenkins Engineer (CJE) CJE Question # 30 Topic 4 Discussion

CJE Exam Topic 4 Question 30 Discussion:
Question #: 30
Topic #: 4

You're a DevOps engineer in charge of configuring Jenkins for your team's CI/CD pipeline. You're utilizing the Jenkins pipeline and the Jenkinsfile. You want to define a stage for your build that utilizes the locally installed Ant and build.xml in the root of your project repository. Which is the correct syntax?


A.

step('build') { sh 'ant -f build.xml -v' } }


B.

stage('build') { sh 'ant -f build.xml -v' }


C.

stage('build') { steps { sh 'ant -f build-tools/build.xml -v' } }


D.

stage('build') { steps { sh 'ant -f build.xml -v' } }


Get Premium CJE Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.