WARNING: Jenkins X version 2.x is unmaintained. Do not use it.

Please refer to thev3 documentation for the latest supported version.

Build Packs

Extending Jenkins X using custom Build Packs

Build Packs & Pod Templates

In Jenkins X aBuild Pack allows you to transform source code into a applications which can be deployed on Kubernetes. Build Packs are based ondraft, and will automatically add:

  • Dockerfile to turn the code into an immutable docker image for running on kubernetes
  • Jenkinsfile to define the declarative Jenkins pipeline to define the CI/CD steps for the application
  • helm chart in thecharts folder to generate the kubernetes resources to run the application on kubernetes
  • apreview chart in thecharts/preview folder to define any dependencies for deploying a preview environment on a Pull Request

If you need to add support for different languages or build tools then you will need to create a newPod Template. A pod template defines the pod used to run the build, and consists of:

  • one or more build containers for running commands inside (e.g. your build tools likemvn ornpm along with tools we use for other parts of the pipeline likegit,jx,helm,kubectl etc)
  • volumes for persistence
  • environment variables
  • secrets so the pipeline can write to git repositories, docker registries, maven/npm/helm repositories and so forth

Read more aboutcreating build packs andcreating pod templates.

Feedback

Was this page helpful?

Glad to hear it! Pleasetell us how we can improve.

Sorry to hear that. Pleasetell us how we can improve.