Jenkins Assignment– 1

Jenkins Core Concept

Basic Questions

  1. Install Jenkins on your computer (Windows/Linux).
  2. Configure Jenkins to start automatically when your computer restarts.
  3. Open Jenkins in your browser and list all the main menu options from the dashboard.
  4. Create your first Freestyle job that prints “Hello Jenkins” in the console output.
  5. Run the above job multiple times and check the build history.
  6. Add a description to your Freestyle job.
  7. Create a job that runs a shell script (Linux) or batch command (Windows).
  8. Create a parameterized job with a string parameter and print the given parameter.
  9. Change the number of executors in Jenkins configuration.
  10. Create a job that clones a GitHub repository and prints the README file.
  11. Schedule a job to run every 5 minutes using the “Build periodically” option.
  12. Run a job manually and check its console output.
  13. Disable a job and then try to run it.
  14. Rename an existing job and verify the change.
  15. Install a new plugin from the Jenkins Plugin Manager.
  16. Update an installed plugin to the latest version.
  17. Uninstall a plugin from Jenkins.
  18. Create a new user account in Jenkins.
  19. Assign roles and permissions to a user.
  20. Change the Jenkins system message and verify it on the dashboard.

Intermediate Questions

  1. Configure Jenkins to connect to a private GitHub repository using credentials.
  2. Create a job that builds only when changes are pushed to GitHub using Poll SCM.
  3. Integrate Jenkins with GitHub Webhooks to trigger a job on code push.
  4. Configure Jenkins to send email notifications for job failures.
  5. Create a pipeline job using Declarative Pipeline syntax.
  6. Add Build, Test, and Deploy stages to your pipeline job.
  7. Use Jenkins environment variables in your pipeline and print them.
  8. Create a parameterized pipeline job with a branch selection parameter.
  9. Add a stage in a pipeline that executes a shell script.
  10. Install and configure the Blue Ocean plugin in Jenkins.
  11. Set up a Jenkins agent (slave) on another machine.
  12. Configure a pipeline to run on the agent instead of the master.
  13. Create a pipeline with two stages running in parallel.
  14. Use post conditions (always, success, failure) in a pipeline.
  15. Add a manual approval step before deployment in a pipeline.
  16. Use Jenkins credentials to access a private repository in a pipeline.
  17. Configure Jenkins global security with matrix-based permissions.
  18. Backup Jenkins configuration and restore it.
  19. Monitor Jenkins logs for troubleshooting.
  20. Configure Jenkins to run on a custom port.

Advanced Questions

  1. Create a scripted pipeline with nested stages.
  2. Write a pipeline that builds a Java project using Maven.
  3. Integrate Jenkins with Docker to build a Docker image.
  4. Run a Jenkins pipeline that executes tests inside a Docker container.
  5. Create a pipeline that deploys an application to a test server.
  6. Implement Jenkins Shared Libraries in a pipeline.
  7. Create a multibranch pipeline project using GitHub.
  8. Configure Jenkins with the Role-Based Access Control plugin.
  9. Integrate Jenkins with Slack for build notifications.
  10. Optimize Jenkins by tuning executors and pipeline concurrency.