Professional Documents
Culture Documents
Jenkins l2 Set 2
Jenkins l2 Set 2
Jenkins l2 Set 2
1) Which of the following commands is used to make the build fail immediately if any tests fail in
ANT
ANS- haltonfailure
ANS- Mocking
ANS- @ignore
5) How will you automate your unit and integration tests by specifying a goal?
6) Build history metrics plugins calculates metrics for all the builds once installed
A) Mean time to failure (MTTF)
B) Mean time to Recovery (MTTR)
C) Standard deviation of build times
a) A&B
b) A&C
c) B&C
d) All of the above
ANS- displays the calculated coverage percentage based on the unit tests written.
12) You need to execute a shell script (/usr/bin/prepare-env) just before a Linux slave is started.
How do you achieve this?
ANS- use the E prefix Start Slave Command __ configuration option on the slave configuration
ANS- Total number of concurrent jobs executions that can take place on the Jenkins machine
14) For serial executions of Job , it needs to connect each ?
ANS- Artifactory
ANS- JSON
ANS- /var/log/Jenkins.log
18) You are asked to obtain the config.xml of a folder from a script or HTTP client using the Jenkins
remote API. The folder exists at the root of a Jenkins master. Which URL pattern is correct?
ANS- root/job/myFolder/config.xml
19) There are dev, main and release branches followed in the development team. You need to
setup built from all branches for CI, you will?
ANS- Go to the build section and click on Add build step? Execute windows batch command