▶ 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
Exam2
Exam2
devops / jenkins
• 5 questions
Question 1 of 5
What are the two main types of Jenkins Pipeline syntax?
A.
Classic and Modern
B.
Scripted and Declarative
C.
Sequential and Parallel
D.
Static and Dynamic
Question 2 of 5
In a Declarative Pipeline, what does the `stages` block contain?
A.
Global environment variable definitions
B.
A sequence of `stage` directives representing the pipeline steps
C.
Agent configuration for the entire pipeline
D.
Post-build actions like notifications
Question 3 of 5
What is the purpose of the `post` section in a Declarative Jenkinsfile?
A.
Define the order of build stages
B.
Specify actions to run after the pipeline completes (success, failure, always, etc.)
C.
Configure the build agent
D.
Set environment variables for all stages
Question 4 of 5
How do you run two stages in parallel in a Declarative Pipeline?
A.
Set `concurrent: true` on each stage
B.
Use the `parallel` directive inside a stage block
C.
Use the `async` keyword before the stage
D.
Wrap stages in a `thread {}` block
Question 5 of 5
What is a Jenkins Shared Library?
A.
A centralized plugin repository
B.
Reusable Groovy code stored in a separate SCM repo, importable across multiple pipelines
C.
A Jenkins agent pool shared between projects
D.
A source control integration plugin
← Back
Submit Answers ✓