DEVOPS PIPELINE EXAMPLES
devops-pipeline-examples/
βββ java-maven/
β βββ Jenkinsfile
β βββ pom.xml
βββ docker-app/
β βββ Jenkinsfile
β βββ Dockerfile
βββ kubernetes-deploy/
β βββ Jenkinsfile
β βββ deployment.yaml
βββ shared-lib/
β βββ vars/
β β βββ buildDocker.groovy
β βββ Jenkinsfile
βββ README.md
This repository contains multiple Jenkinsfile examples for different DevOps scenarios. Each subdirectory represents a specific use case with its own Jenkinsfile for Jenkins pipelines.
- java-maven/: A Java project with Maven, featuring a pipeline for build, test, and SonarQube analysis.
- docker-app/: A Docker-based application with a pipeline for building and pushing images to DockerHub.
- kubernetes-deploy/: A pipeline for deploying applications to Kubernetes using ArgoCD.
- shared-lib/: A Jenkins Shared Library example with reusable pipeline steps.
- Jenkins with plugins:
Docker Pipeline,Kubernetes,Maven,SonarQube Scanner,GitHub Integration. - Credentials configured in Jenkins for GitHub, DockerHub, and Kubernetes.
- AWS CLI and ArgoCD CLI (for specific pipelines).
- Clone this repository:
git clone https://github.com/serdardevops/devops-pipeline-examples.git - Set up Jenkins pipelines for each subdirectory by pointing to the respective
Jenkinsfile. - Configure credentials in Jenkins as needed (e.g.,
github-cred,dockerhub-cred).
Feel free to fork this repository and contribute by adding more Jenkinsfile examples!
Created by Serdar SelΓ§uk | March 2025