Jenkins Jenkins Plugins 2 — Questions and Answers
Question 1: What does the Pipeline plugin enable in Jenkins?
- Blue Ocean UI for pipelines
- Running Jenkins as a pipeline orchestrator for Kubernetes
- Defining Jenkins builds as code using the Jenkinsfile DSL (Correct answer)
- Visualizing build dependency graphs
Correct answer: Defining Jenkins builds as code using the Jenkinsfile DSL
The Pipeline plugin adds the core Pipeline DSL support, allowing builds to be defined as code in a Jenkinsfile.
Question 2: Which Jenkins plugin allows sending build notifications to Slack?
- Slack Notifier Plugin (Correct answer)
- Messaging Integration Plugin
- ChatOps Plugin
- Notification Plugin
Correct answer: Slack Notifier Plugin
The Slack Notifier Plugin integrates Jenkins with Slack to send build status notifications to specified channels.
Question 3: What is the role of the Docker Pipeline plugin?
- Builds Docker images from Dockerfiles
- Enables running pipeline steps inside Docker containers using the `docker` DSL (Correct answer)
- Deploys containers to Docker Swarm
- Pushes images to Docker Hub
Correct answer: Enables running pipeline steps inside Docker containers using the `docker` DSL
The Docker Pipeline plugin provides the `docker.image()` and `docker.build()` DSL for using Docker containers as pipeline build environments.
Question 4: Which plugin enables Jenkins to run builds on Kubernetes pods as agents?
- Kubernetes Executor Plugin
- Kubernetes Plugin (Correct answer)
- K8s Agent Plugin
- Pod Template Plugin
Correct answer: Kubernetes Plugin
The Kubernetes Plugin allows Jenkins to dynamically provision Kubernetes pods as build agents using pod templates.
Question 5: What does the Role-Based Authorization Strategy plugin provide?
- LDAP role synchronization
- Fine-grained role-based access control with global and project-level roles (Correct answer)
- OAuth token management
- Multi-tenant Jenkins isolation
Correct answer: Fine-grained role-based access control with global and project-level roles
The Role-Based Authorization Strategy plugin allows admins to define roles with specific permissions and assign them to users or groups.
Question 6: What is the purpose of the Active Choices plugin in Jenkins?
- To dynamically populate build parameter options based on scripts or other parameter values (Correct answer)
- To auto-approve waiting pipeline stages
- To enable A/B testing of pipeline configurations
- To dynamically scale the number of executors
Correct answer: To dynamically populate build parameter options based on scripts or other parameter values
The Active Choices plugin renders dynamic, script-driven build parameters that can change based on other parameter selections.
What does the Pipeline plugin enable in Jenkins?