Jenkins Assignment– 6

Continuous Delivery & Deployment

Basic Questions

  1. Create a Freestyle job that prints “Continuous Delivery with Jenkins” in the console.
  2. Create a pipeline with stages: Build → Test → Deploy (dummy steps only).
  3. Configure Jenkins to build and run a simple Docker container.
  4. Write a pipeline that builds a Docker image from a Dockerfile.
  5. Push a Docker image to Docker Hub using Jenkins.
  6. Create a pipeline that pulls a Docker image and runs a container.
  7. Configure Jenkins to run a Kubernetes kubectl get pods command.
  8. Deploy a sample application to Kubernetes from Jenkins using kubectl apply.
  9. Create a pipeline that uses AWS CLI to list S3 buckets.
  10. Create a pipeline that uses Azure CLI to list resource groups.
  11. Create a pipeline that uses GCP CLI to list active projects.
  12. Install the Ansible plugin in Jenkins.
  13. Run an Ansible playbook from a Jenkins pipeline.
  14. Install the Terraform plugin in Jenkins.
  15. Run a Terraform init command from Jenkins.
  16. Create a pipeline that deploys a container to a local Docker environment.
  17. Create a pipeline that deploys a sample app to a local Kubernetes cluster.
  18. Add a post action to a pipeline that prints “Deployment Completed”.
  19. Configure Jenkins credentials for Docker Hub login.
  20. Configure Jenkins credentials for Kubernetes cluster authentication.

Intermediate Questions

  1. Create a pipeline that builds a Docker image and tags it with the build number.
  2. Push the Docker image to Docker Hub with version tagging.
  3. Deploy the Dockerized application to a Kubernetes cluster from Jenkins.
  4. Create a pipeline that uses AWS CLI to deploy an app to Elastic Beanstalk.
  5. Create a pipeline that uses Azure CLI to deploy a web app to Azure App Service.
  6. Create a pipeline that uses GCP CLI to deploy an app to Google App Engine.
  7. Run an Ansible playbook for application deployment from Jenkins.
  8. Run a Terraform script for infrastructure creation from Jenkins.
  9. Create a pipeline that builds and pushes multiple Docker images in parallel.
  10. Create a pipeline with stages: Build Docker → Push Image → Deploy to Kubernetes.
  11. Create a pipeline with Blue-Green deployment strategy for a web app.
  12. Create a pipeline with Canary deployment strategy for a web app.
  13. Create a pipeline with Rolling Update strategy for a web app.
  14. Configure Jenkins to rollback a deployment if a stage fails.
  15. Create a pipeline that deploys different environments (Dev, QA, Prod) using parameters.
  16. Create a pipeline that runs unit tests before Docker image build.
  17. Create a pipeline that runs integration tests after deploying to Kubernetes.
  18. Add notifications in the pipeline to send messages after deployment.
  19. Visualize a Docker build and deploy pipeline in Blue Ocean.
  20. Create a multibranch pipeline that deploys different branches to different environments.

Advanced Questions

  1. Write a Jenkinsfile that builds, pushes, and deploys a Dockerized app to Kubernetes.
  2. Create a pipeline with parallel deployment to AWS, Azure, and GCP test environments.
  3. Write a pipeline that builds Docker images and runs security scans before pushing.
  4. Write a pipeline that deploys to Kubernetes using Helm charts.
  5. Write a pipeline that runs Terraform to provision infrastructure and then deploys the app.
  6. Implement a Blue-Green deployment with traffic switching using Jenkins pipeline.
  7. Implement a Canary deployment with gradual traffic rollout using Jenkins pipeline.
  8. Write a pipeline that performs Rolling Updates with zero downtime.
  9. Write a pipeline that triggers Ansible playbooks for configuration after deployment.
  10. Write a full CI/CD pipeline: Checkout → Build Docker → Push Image → Deploy to Kubernetes → Run Tests → Notify.