Jenkins · Declarative pipeline basics

Run in a Docker container

Run the pipeline inside a container image, so builds have the tools they need.

agent {
  docker { image 'node:24' }
}

Official Jenkins documentation

More declarative pipeline basics commands

All declarative pipeline basics commands · Jenkins cheatsheet

Was this page helpful?