▶ ExamTry
Home
Medical
Neet Ug
4
Ssc-Cgl
General_Awareness
5
Mock-Test
5
Devops
Git
3
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
jenkins
Exam5
Exam5
devops / jenkins
• 5 questions
Question 1 of 5
Where does Jenkins store its home directory and configuration by default?
A.
/etc/jenkins
B.
$JENKINS_HOME (typically /var/lib/jenkins or /var/jenkins_home in Docker)
C.
/opt/jenkins/config
D.
/home/jenkins/.config
Question 2 of 5
What is the purpose of `junit` step in a Jenkinsfile?
A.
Run Java unit tests directly
B.
Parse and publish JUnit-format XML test results in the Jenkins build report
C.
Install the JUnit framework as a dependency
D.
Generate code coverage reports
Question 3 of 5
In Jenkins, what does the `input` step do?
A.
Reads a file from the workspace
B.
Pauses the pipeline and waits for human approval before continuing
C.
Accepts environment variable input from the agent
D.
Reads parameterized build values
Question 4 of 5
What does the `agent any` directive mean in a Declarative Pipeline?
A.
The pipeline runs on the Jenkins controller only
B.
The pipeline can run on any available agent
C.
Each stage runs on a different agent
D.
The pipeline uses Docker-based agents exclusively
Question 5 of 5
What is the `environment` directive used for in a Declarative Jenkinsfile?
A.
Specifying the OS environment for the agent
B.
Defining environment variables accessible to all steps in the pipeline or a stage
C.
Configuring the Jenkins controller environment
D.
Setting Docker environment variables only
← Back
Submit Answers ✓