Jenkins Quiz
Jenkins Quiz : This Jenkins Intermediate Quiz contains set of Top 30 Jenkins Quiz which will help to clear any Mcqs exam which is designed for Intermediate .
Topics covered related to Jenkins, what is jenkins, jenkins software, cicd jenkins, jenkins cicd, ci cd with jenkins, cicd with jenkins, ci jenkins, jenkins ci, build jenkins, enterprise jenkins, jenkins enterprise, jenkins building, ci with jenkins, jenkins ci cd pipeline, jenkins server, ci cd jenkins, continuous integration with jenkins, continuous integration jenkins, jenkins | devops, jenkins ci cd and so on.
- Code coverage analysis is CPU and Memory intensive process which will slow down build completion time. How do you configure code coverage analysis in this scenario?
ANS- Run code coverage analysis in separate build job after unit and integration test successful.
- Which plugin is used to run the selenium test cases in Jenkins?
ANS- Hudson Selenium
- What are the minimum steps needed to configure unit testing in Jenkins?
- Add built step to invoke ant and include the
- Add post-build action to publish the test res
- Both the above
- Add HTML scarping and include T
Ans- Both the above
- How do you configure Jenkins to utilize more memory for running performance tests?
ANS- mention the memory to be used in MAVEN_OPTS field in the build job.
- How do you configure Jenkins to skip the tests in Junit?
ANS- @ignore
- What does the code coverage report provide?
ANS- displays the calculated coverage percentage based on the unit tests written.
- Which one of the following has maven project?
ANS- coverage.xml
- Checkstyle is used for checking?
ANS- Coding standards coding practices code complexity metric
- Which plugin is used for getting code coverage for .net projects?
a)mstest
b)vstest
c)cobertura
d)a and b
ANS- a and b ( mstest and vstest )
- Name the correct plugin that is used for running static code analysis?
a)checkstyle Maven plugin
b)FindBugs plugin
- c) a and b
- d) none of the above
ANS- a and b ( checkstyle Maven plugin and Findbugs plugin)
- You are installing the plugins and Jenkins throw error that is not able to download the plugins since Jenkin is behind firewall. How do you download the plugins?
ANS- set http proxy connection details
- Which of the below is used to configure JDK and ANT installations in build job?
ANS- configure system
- How do you run groovy scripts in Jenkin server?
ANS- use script console
- The Jenkins job are internally stored in which format?
ANS- JSON format
- PRQA plugin is used for?
ANS- static code analysis
- What plugin is used for binary repository?
ANS- artifactory
- You need to have the maven build previous builds , compile code and unit test and generate jar file, what needs to be configured in Jenkins to achieve this?
ANS- add clean package for maven build
- How to execute windows batch command from a job?
ANS- Go to the build section and click on Add Build step? Execute windows batch command.
- You need to schedule build to run every minute of every hour of every day. How do you set up?
ANS- add “******” in Poll SCM option in build triggers
- To shut down Jenkins cleanly , you can use the _______________ link , which prevents any new build from being started?
ANS- prepare for shutdown
SET 2 Jenkins Quiz
- Which of the following commands is used to make the build fail immediately if any tests fail in ANT
ANS- haltonfailure
- Various test techniques are
ANS- Mocking
- Performance tests run by?
- a) Simulating load on your application
- b) Simulates action of client applications
- c) measuring the response time as the number of
- d) all of the above
ANS- all of the above
- How do you configure Jenkins to skip the test in Junit?
ANS- @ignore
- How will you automate your unit and integration tests by specifying a goal?
ANS- mvn verify
- Build history metrics plugins calculates metrics for all the builds once installed
- Mean time to failure (MTTF)
- Mean time to Recovery (MTTR)
- Standard deviation of build times
- A & B
- A & C
- B & C
- All of the above
ANS- all of the above
- Static Analysis collector plugin does not provide?
ANS- Total number of bugs and warnings
- How do you generate findbugs reports?
- Mvn site
- Mvn site findbugs
- Mvn findbugs findbugs
- Both a and c
ANS- both a and c
- Checkstyle,Findbugs,PMD are all ?
ANS- Code Analysis Tool
- What does the code coverage report provide?
ANS- displays the calculated coverage percentage based on the unit tests written.
- How do you run groovy scripts in Jenkins server?
ANS- use Script Console
- 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
- What does of executors indicate for Jenkins configuration?
ANS- Total number of concurrent jobs executions that can take place on the Jenkins machine
- For serial executions of Job , it needs to connect each ?
ANS- upstream job to a downstream one with <invoke>
- What plugins can be used for binary repository?
ANS- Artifactory
- The Jenkins jobs are internally stored in which format?
ANS- JSON
- The Jenkins logs are stored bydefault in?
ANS- /var/log/Jenkins.log
- 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
- 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- set branches to build as blank(**)
- How to execute windows batch command from a job?
ANS- Go to the build section and click on Add build step? Execute windows batch command