The Jenkins Kubernetes plugin is a very cool bit of tech that allows Jenkins to dynamically provision workers from a pool of Docker hosts managed by Kubernetes.
Setting up a worker with
lein is straightforward. With the Kubernetes plugin installed, visit your Jenkins configuration page and add a pod template along the lines of
Configure your project to use the pod and you’re set.
Note that only
lein is supported currently – please submit a PR or open an issue if you’d like to see additional build tools supported!