Jenkins Assignment– 1
Jenkins Core Concept
Basic Questions
- Install Jenkins on your computer (Windows/Linux).
- Configure Jenkins to start automatically when your computer restarts.
- Open Jenkins in your browser and list all the main menu options from the dashboard.
- Create your first Freestyle job that prints “Hello Jenkins” in the console output.
- Run the above job multiple times and check the build history.
- Add a description to your Freestyle job.
- Create a job that runs a shell script (Linux) or batch command (Windows).
- Create a parameterized job with a string parameter and print the given parameter.
- Change the number of executors in Jenkins configuration.
- Create a job that clones a GitHub repository and prints the README file.
- Schedule a job to run every 5 minutes using the “Build periodically” option.
- Run a job manually and check its console output.
- Disable a job and then try to run it.
- Rename an existing job and verify the change.
- Install a new plugin from the Jenkins Plugin Manager.
- Update an installed plugin to the latest version.
- Uninstall a plugin from Jenkins.
- Create a new user account in Jenkins.
- Assign roles and permissions to a user.
- Change the Jenkins system message and verify it on the dashboard.
Intermediate Questions
- Configure Jenkins to connect to a private GitHub repository using credentials.
- Create a job that builds only when changes are pushed to GitHub using Poll SCM.
- Integrate Jenkins with GitHub Webhooks to trigger a job on code push.
- Configure Jenkins to send email notifications for job failures.
- Create a pipeline job using Declarative Pipeline syntax.
- Add Build, Test, and Deploy stages to your pipeline job.
- Use Jenkins environment variables in your pipeline and print them.
- Create a parameterized pipeline job with a branch selection parameter.
- Add a stage in a pipeline that executes a shell script.
- Install and configure the Blue Ocean plugin in Jenkins.
- Set up a Jenkins agent (slave) on another machine.
- Configure a pipeline to run on the agent instead of the master.
- Create a pipeline with two stages running in parallel.
- Use post conditions (always, success, failure) in a pipeline.
- Add a manual approval step before deployment in a pipeline.
- Use Jenkins credentials to access a private repository in a pipeline.
- Configure Jenkins global security with matrix-based permissions.
- Backup Jenkins configuration and restore it.
- Monitor Jenkins logs for troubleshooting.
- Configure Jenkins to run on a custom port.
Advanced Questions
- Create a scripted pipeline with nested stages.
- Write a pipeline that builds a Java project using Maven.
- Integrate Jenkins with Docker to build a Docker image.
- Run a Jenkins pipeline that executes tests inside a Docker container.
- Create a pipeline that deploys an application to a test server.
- Implement Jenkins Shared Libraries in a pipeline.
- Create a multibranch pipeline project using GitHub.
- Configure Jenkins with the Role-Based Access Control plugin.
- Integrate Jenkins with Slack for build notifications.
- Optimize Jenkins by tuning executors and pipeline concurrency.