summaryrefslogtreecommitdiffstats
path: root/tests/yamlparser/fixtures/template_ids.yaml
blob: 588f59c20db7dc5da7c482db0f57da86615f7250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- project:
    name: test_template_id
    jobs:
        - 'simple-template':
            test_var: Hello World
            type: periodic
            num: 1
        - 'not-as-simple-template':
            test_var: Goodbye World
            type: canary
            num: 2

- job-template:
    name: 'template-test-ids-{num}-{type}'
    id: simple-template
    builders:
      - shell: |
         echo "Template name: {template-name}"
         echo "Job name: template-test-ids-{num}-{type}"
         echo "{test_var}"

- job-template:
    name: 'template-test-ids-{num}-{type}'
    id: not-as-simple-template
    builders:
      - shell: |
         echo "Template name: {template-name}"
         echo "Job name: template-test-ids-{num}-{type}"
      - shell: |
         echo "{test_var}"