Jenkins Assignment– 2
Source Code Management & Build Tools
Basic Questions
- Connect Jenkins to a public GitHub repository without credentials.
- Clone a GitHub repository using a Freestyle job and print its files.
- Create a Jenkins job that pulls the latest code from GitHub.
- Connect Jenkins to a GitLab repository using HTTPS.
- Connect Jenkins to a GitLab repository using SSH keys.
- Integrate Jenkins with a Bitbucket repository using HTTPS.
- Integrate Jenkins with a Bitbucket repository using SSH keys.
- Configure Jenkins to connect to a private GitHub repository using credentials.
- Create a parameterized job that clones different Git branches based on input.
- Test connection between Jenkins and GitHub in job configuration.
- Clone a repository and build it using the default mvn clean install command.
- Create a job that runs gradle build on a sample Gradle project.
- Create a job that runs ant compile on a sample Ant project.
- Configure Jenkins to use system Git installation instead of the embedded one.
- Set up Git global configuration (name and email) inside Jenkins.
- Create a Jenkins job that checks out a specific commit ID from Git.
- Create a job that checks out a tag from Git.
- Configure Jenkins to ignore SSL verification when connecting to Git (for testing).
- Clone a repository and print the commit history using Jenkins.
- Create a Freestyle job that automatically pulls code every 10 minutes.
Intermediate Questions
- Configure a GitHub webhook to trigger a Jenkins job when code is pushed.
- Configure a GitLab webhook to trigger a Jenkins job when code is pushed.
- Configure a Bitbucket webhook to trigger a Jenkins job when code is pushed.
- Create a pipeline job that builds automatically on GitHub push.
- Create a pipeline job that builds automatically on GitLab push.
- Configure Jenkins to run builds on pull requests in GitHub.
- Configure Jenkins to run builds on merge requests in GitLab.
- Create a pipeline job that runs mvn test whenever code is pushed.
- Create a pipeline job that runs gradle test whenever code is pushed.
- Create a pipeline job that runs ant test whenever code is pushed.
- Configure Jenkins to build different branches automatically using GitHub webhook.
- Configure Jenkins to build feature branches automatically using GitLab webhook.
- Create a Jenkins pipeline that runs build → test → package using Maven.
- Create a Jenkins pipeline that runs build → test → package using Gradle.
- Create a Jenkins pipeline that runs build → test → package using Ant.
- Create a pipeline that prints commit author and commit message after build.
- Configure Jenkins to trigger a job only if the commit message contains “[build]”.
- Configure Jenkins to trigger a job only if code is pushed to the main branch.
- Set up a pipeline to run unit tests automatically on every Git commit.
- Set up a pipeline to package a project into a JAR/WAR file automatically on Git push.
Advanced Questions
- Create a multibranch pipeline project for a GitHub repository.
- Create a multibranch pipeline project for a GitLab repository.
- Create a multibranch pipeline project for a Bitbucket repository.
- Configure Jenkins to build pull requests from GitHub using webhooks.
- Configure Jenkins to build merge requests from GitLab using webhooks.
- Create a Jenkins pipeline that builds a Maven project and archives artifacts.
- Create a Jenkins pipeline that builds a Gradle project and archives artifacts.
- Create a Jenkins pipeline that builds an Ant project and archives artifacts.
- Configure Jenkins to trigger multiple jobs in sequence after a Git commit.
- Configure Jenkins to trigger multiple jobs in parallel after a Git commit.