Skip to content

Instantly share code, notes, and snippets.

@waynr
Created June 22, 2015 16:25
Show Gist options
  • Save waynr/5cb7f54c1462fee7bbb3 to your computer and use it in GitHub Desktop.
Save waynr/5cb7f54c1462fee7bbb3 to your computer and use it in GitHub Desktop.
Demonstrate lack of parameter ordering from yaml dictionary using https://review.openstack.org/#/c/193660/3
- project:
name: bogus-jankerator
meta_path_project: 'poc-hydra/production/bogus-jankerator.yaml'
github_user: 'waynr'
github_project: 'bogus-jankerator'
jobs:
- 'hydra_{name}_jjb-test1'
- 'hydra_{name}_jjb-test2'
- job-template:
name: 'hydra_{name}_jjb-test1'
defaults: zuul
meta_path_jobtemplate: 'poc-hydra/resources/jobs/unit-poc.yaml'
display-name: 'JJB Test1'
publishers:
- trigger-parameterized-builds:
- project: '{obj:tpb_projects}'
current-parameters: '{obj:tpb_current_parameters}'
predefined-parameters: '{obj:tpb_predefined_parameters}'
condition: '{obj:tpb_condition}'
property-file: '{obj:tpb_property_file}'
git-revision: '{obj:tpb_git_revision}'
- job-template:
name: 'hydra_{name}_jjb-test2'
defaults: zuul
meta_path_jobtemplate: 'poc-hydra/resources/jobs/unit-poc.yaml'
display-name: 'JJB Test2'
publishers:
- trigger-parameterized-builds:
- project: '{obj:tpb_projects}'
property-file: '{obj:tpb_property_file}'
predefined-parameters: '{obj:tpb_predefined_parameters}'
current-parameters: '{obj:tpb_current_parameters}'
condition: '{obj:tpb_condition}'
git-revision: '{obj:tpb_git_revision}'
- defaults:
name: global
# VAR for ci-job-configs' trigger-parameterized-build publisher macro
# Default predefined parameters for triggered job.
# Probably most useful to set on a per job-template basis.
tpb_predefined_parameters: ''
# VAR for ci-job-configs' trigger-parameterized-build publisher macro
# Default property file for triggered job.
tpb_property_file: ''
# VAR for ci-job-configs' trigger-parameterized-build publisher macro
# Default current parameter passing behavior.
tpb_current_parameters: True
# VAR for ci-job-configs' trigger-parameterized-build publisher macro
# Default condition under which to trigger downstream job. Note that JJB
# doesn't care what value it receives for this field so be careful! Valid
# values:
# - ALWAYS
# - SUCCESS
# - FAILED
# - UNSTABLE
# - UNSTABLE_OR_BETTER
# - UNSTABLE_OR_WORSE
tpb_condition: 'UNSTABLE_OR_BETTER'
# VAR for ci-job-configs' trigger-parameterized-build publisher macro
# Default git revision passing behavior for downstream job.
tpb_git_revision: True
# VAR
# Intedned to be used on a job-template so that instances of the
# job-template may pass different downstream jobs.
tpb_projects: ''
- defaults:
name: zuul
properties:
- github:
url: '{github_http_url}'
github_user: 'puppetlabs'
git_url: '[email protected]:{github_user}/{github_project}.git'
github_http_url: 'https://github.com/{github_user}/{github_project}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment