Skip to content

Instantly share code, notes, and snippets.

@waynr
Created May 22, 2015 13:29
Show Gist options
  • Save waynr/29ccb2ad5582606427d5 to your computer and use it in GitHub Desktop.
Save waynr/29ccb2ad5582606427d5 to your computer and use it in GitHub Desktop.
jjb job-template example
- job-template:
name: '{value_stream}_{name}_init-merge_{qualifier}'
meta_path_jobtemplate: 'resources/jobs/kickoffs.yaml'
scm:
- git:
url: '{git_url}'
skip-tag: '{git_skip_tag}'
branches:
- '{scm_branch}'
submodule:
recursive: True
excluded-users: '{obj:git_excluded_users}'
excluded-regions: '{obj:git_excluded_regions}'
included-regions: '{obj:git_included_regions}'
display-name: '{name} ({scm_branch}){dn-sort-index} {dn-qualifier}Mergely Kickoff'
node: worker
disabled: '{obj:kickoff_disabled}'
project-type: freestyle
triggers:
- pollscm: "H/5 * * * *"
publishers:
- trigger-parameterized-builds:
- project: '{obj:tpb_projects}'
parameter-order:
- 'current-parameters'
- 'predefined-parameters'
- 'property-file'
predefined-parameters: '{obj:tpb_predefined_parameters}'
current-parameters: '{obj:tpb_current_parameters}'
condition: '{obj:tpb_condition}'
property-file: '{obj:tpb_property_file}'
git-revision: '{obj:tpb_git_revision}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment