Jenkins Jenkins Plugins 1 — Questions and Answers
Question 1: Which Jenkins plugin enables integration with Git repositories for source code management?
- GitHub Integration Plugin
- Git Plugin (Correct answer)
- SCM Manager Plugin
- Source Control Plugin
Correct answer: Git Plugin
The Git Plugin provides Git SCM integration, allowing Jenkins to clone, fetch, and check out from Git repositories.
Question 2: What does the Maven Integration plugin provide in Jenkins?
- A Maven repository proxy
- Native Maven build support with automatic goal binding and artifact archiving (Correct answer)
- Docker image publishing via Maven
- Maven wrapper auto-installation
Correct answer: Native Maven build support with automatic goal binding and artifact archiving
The Maven Integration plugin adds a dedicated Maven project type with automatic goal binding, test result publishing, and artifact archiving.
Question 3: Which plugin is used to trigger Jenkins builds from GitHub webhook events?
- GitHub Plugin (Correct answer)
- GitHub Integration Plugin
- Webhook Trigger Plugin
- Pipeline GitHub Plugin
Correct answer: GitHub Plugin
The GitHub Plugin enables Jenkins to receive GitHub webhook events and trigger builds on push or pull request events.
Question 4: What is the purpose of the Credentials Plugin in Jenkins?
- Encrypts Jenkins configuration files
- Provides a centralized, secure store for credentials used in jobs and pipelines (Correct answer)
- Manages SSH keys for agent connections
- Stores build artifact access tokens
Correct answer: Provides a centralized, secure store for credentials used in jobs and pipelines
The Credentials Plugin provides a centralized credential store where secrets can be securely stored and referenced in jobs without exposure.
Question 5: Which Jenkins plugin provides the `withCredentials` pipeline step?
- Credentials Binding Plugin (Correct answer)
- Secret Manager Plugin
- Vault Plugin
- Keystore Plugin
Correct answer: Credentials Binding Plugin
The Credentials Binding Plugin provides the `withCredentials` pipeline step that binds stored credentials to environment variables.
Question 6: Which plugin is commonly used to publish JUnit test results in Jenkins?
- Test Results Plugin
- JUnit Plugin (Correct answer)
- Surefire Plugin
- Test Reporter Plugin
Correct answer: JUnit Plugin
The JUnit Plugin parses JUnit-compatible XML test result files and displays trend reports on the build page.
Which Jenkins plugin enables integration with Git repositories for source code management?