Jenkins Assignment– 6
Continuous Delivery & Deployment
Basic Questions
- Create a Freestyle job that prints “Continuous Delivery with Jenkins” in the console.
- Create a pipeline with stages: Build → Test → Deploy (dummy steps only).
- Configure Jenkins to build and run a simple Docker container.
- Write a pipeline that builds a Docker image from a Dockerfile.
- Push a Docker image to Docker Hub using Jenkins.
- Create a pipeline that pulls a Docker image and runs a container.
- Configure Jenkins to run a Kubernetes kubectl get pods command.
- Deploy a sample application to Kubernetes from Jenkins using kubectl apply.
- Create a pipeline that uses AWS CLI to list S3 buckets.
- Create a pipeline that uses Azure CLI to list resource groups.
- Create a pipeline that uses GCP CLI to list active projects.
- Install the Ansible plugin in Jenkins.
- Run an Ansible playbook from a Jenkins pipeline.
- Install the Terraform plugin in Jenkins.
- Run a Terraform init command from Jenkins.
- Create a pipeline that deploys a container to a local Docker environment.
- Create a pipeline that deploys a sample app to a local Kubernetes cluster.
- Add a post action to a pipeline that prints “Deployment Completed”.
- Configure Jenkins credentials for Docker Hub login.
- Configure Jenkins credentials for Kubernetes cluster authentication.
Intermediate Questions
- Create a pipeline that builds a Docker image and tags it with the build number.
- Push the Docker image to Docker Hub with version tagging.
- Deploy the Dockerized application to a Kubernetes cluster from Jenkins.
- Create a pipeline that uses AWS CLI to deploy an app to Elastic Beanstalk.
- Create a pipeline that uses Azure CLI to deploy a web app to Azure App Service.
- Create a pipeline that uses GCP CLI to deploy an app to Google App Engine.
- Run an Ansible playbook for application deployment from Jenkins.
- Run a Terraform script for infrastructure creation from Jenkins.
- Create a pipeline that builds and pushes multiple Docker images in parallel.
- Create a pipeline with stages: Build Docker → Push Image → Deploy to Kubernetes.
- Create a pipeline with Blue-Green deployment strategy for a web app.
- Create a pipeline with Canary deployment strategy for a web app.
- Create a pipeline with Rolling Update strategy for a web app.
- Configure Jenkins to rollback a deployment if a stage fails.
- Create a pipeline that deploys different environments (Dev, QA, Prod) using parameters.
- Create a pipeline that runs unit tests before Docker image build.
- Create a pipeline that runs integration tests after deploying to Kubernetes.
- Add notifications in the pipeline to send messages after deployment.
- Visualize a Docker build and deploy pipeline in Blue Ocean.
- Create a multibranch pipeline that deploys different branches to different environments.
Advanced Questions
- Write a Jenkinsfile that builds, pushes, and deploys a Dockerized app to Kubernetes.
- Create a pipeline with parallel deployment to AWS, Azure, and GCP test environments.
- Write a pipeline that builds Docker images and runs security scans before pushing.
- Write a pipeline that deploys to Kubernetes using Helm charts.
- Write a pipeline that runs Terraform to provision infrastructure and then deploys the app.
- Implement a Blue-Green deployment with traffic switching using Jenkins pipeline.
- Implement a Canary deployment with gradual traffic rollout using Jenkins pipeline.
- Write a pipeline that performs Rolling Updates with zero downtime.
- Write a pipeline that triggers Ansible playbooks for configuration after deployment.
- Write a full CI/CD pipeline: Checkout → Build Docker → Push Image → Deploy to Kubernetes → Run Tests → Notify.