docs/current_docs/getting-started/ci-integrations/jenkins.mdx
Dagger provides a programmable container engine that allows you to replace your Groovy-based Jenkins pipelines with with Dagger Functions written in a regular programming language. This allows you to execute your pipeline the same locally and in Jenkins, with intelligent caching, while keeping all of your existing Jenkins infrastructure.
There are many ways to run Dagger on Jenkins. The simplest way to get started is having a Jenkins agent with OCI compatible container runtime.
The general workflow looks like this:
Jenkinsfile from repository or from UI configuration.Jenkinsfile and downloads the Dagger CLI.dagger call ....DAGGER_CLOUD_TOKEN environment variable is set.Running the examples shown below requires:
dagger labeldocker:dind)docker client installed on your Jenkins agentThe following code sample demonstrates how to integrate Dagger with Jenkins.
If you have any questions about additional ways to use Jenkins with Dagger, join our Discord and ask your questions in our Jenkins channel.
Jenkins is an open-source automation server that enables teams to automate the build, test, and deploy processes of software projects. Jenkins supports many plugins that integrate with various tools, making it a popular choice for Continuous Integration and Continuous Deployment.