Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created May 17, 2017 17:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ssbarnea/6a72a041ed968640bf1bd023d5c32118 to your computer and use it in GitHub Desktop.
- defaults: &single_node_defaults
name: single_node_defaults
node: 'component'
#product_version: ['7', '8']
product_version: !!python/tuple ['7', '8']
# nether of this would be working, instead of getting multiple jobs we get something like "foobar-('7', '8')-pep8"
- job-template:
name: '{component}-{product_version}-{tester}'
- project:
name: xxx-jobs
defaults: single_node_defaults
# next line work as expected
#product_version: ['7', '8']
jobs:
- '{component}-{product_version}-{tester}':
component: foobar
tester:
- 'pep8'
- 'unit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment