Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Docker Repository on


[Demo] Bootstrapping Jenkins:

This repository contains a Jenkins-as-Code approach. Everything is tested and running with Jenkins 2.204.1 on minikube v1.0.0 (the .gif you above was done with an older version). The setup is based on docker, helm and git so it can be easily applied in different infrastructures. Plugins and minimum setup are pre-baked inside a docker image. A configuration and seeding pipeline provisions Jenkins with configuration code from a central git repository. Configuration includes: agents on demand (with terraform), slack, github, github-oauth, security settings, theming, ...

Running locally

The following files with your secrets have to be created to run this prototype:

|-- secret-files
    |-- default-setup-password          # pre-baked setup user password
    |-- default-setup-user              # pre-baked setup user name
    |-- deploy-key-shared-library       # private ssh deploy key
    |--   # public ssh deploy key
    |-- github-ci-password              # GitHub Jenkins user password
    |-- github-ci-token                 # GitHub Jenkins user access token
    |-- github-ci-user                  # GitHub Jenkins user name
    |-- github-oauth-client-id
    |-- github-oauth-client-secret
    |-- slack-token
    |-- ssh-agent-access-key            # private ssh key for agent access
    |--        # public ssh key for agent access
    `-- terraform-config                # Terraform backend configs and secrets
        |-- aws-agent-network.backend.config
        |-- aws-agent-network.tfvars
        |-- aws-agent-vms.backend.config
        `-- aws-agent-vms.tfvars

After you have placed your secret files you can run:

make get-tools-(linux|mac)
make minikube-start
make deploy-helm

This should open Jenkins on

On-Demand Agents

The code base also supports on-demand agents with custom terraform bootstrapping/destroy pipelines. A demo can be found here

Detailed Explanations

The following blog entries describe in more detail how this works: