Which CI/CD tools are commonly used with Java projects?
Options
- Jenkins, GitHub Actions, GitLab CI, Azure DevOps Pipelines (Correct option)
- Photoshop, Excel, Word, PowerPoint and Visio documents
- Only Docker, since it builds and deploys every project
- Only Maven, since it builds and deploys every Java project
Answer
Jenkins, GitHub Actions, GitLab CI, Azure DevOps Pipelines
Why
CI/CD tools run your pipeline on every push: build with Maven, run tests, build a Docker image, push it to a registry, deploy to Kubernetes or a cloud service.
- Jenkins: self-hosted, very flexible, plugins.
- GitHub Actions: pipelines defined in
.github/workflows/*.yml, integrated with GitHub. - GitLab CI:
.gitlab-ci.yml. - Azure DevOps Pipelines:
azure-pipelines.yml, common in Azure shops.
All express the pipeline as code stored in the repository.
Remember
Pipeline as code: Jenkins, GitHub Actions, GitLab CI, Azure DevOps.