Skip to content

Instantly share code, notes, and snippets.

@electrofelix
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electrofelix/ab7a1da9168eebdadf28 to your computer and use it in GitHub Desktop.
Save electrofelix/ab7a1da9168eebdadf28 to your computer and use it in GitHub Desktop.
variable number of builders in JJB
- job-template:
name: '{name}-spec'
project-type: freestyle
disabled: false
description: variable number of builders example
builders:
- shell: !include-raw-escape scripts/setup.bash
- '{custom-builders}'
- builder:
name: builders-empty-list
builders: ''
- builder:
name: builder-bundler-1.5.2
builders:
- shell: "gem uninstall bundler"
- shell: "gem install --version '~> 1.5.2' bundler"
- shell: "echo 'a third step'"
- project:
name: myproject-generic
jobs:
- '{name}-spec':
custom-builders: builders-empty-list
- project:
name: myproject-bundler-1.5.2
custom-builders: builder-bundler-1.5.2
jobs:
- '{name}-spec'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment