| 1 | - project: |
| 2 | name: test_template_id |
| 3 | jobs: |
| 4 | - 'simple-template': |
| 5 | test_var: Hello World |
| 6 | type: periodic |
| 7 | num: 1 |
| 8 | - 'not-as-simple-template': |
| 9 | test_var: Goodbye World |
| 10 | type: canary |
| 11 | num: 2 |
| 12 | |
| 13 | - job-template: |
| 14 | name: 'template-test-ids-{num}-{type}' |
| 15 | id: simple-template |
| 16 | builders: |
| 17 | - shell: | |
| 18 | echo "Template name: {template-name}" |
| 19 | echo "Job name: template-test-ids-{num}-{type}" |
| 20 | echo "{test_var}" |
| 21 | |
| 22 | - job-template: |
| 23 | name: 'template-test-ids-{num}-{type}' |
| 24 | id: not-as-simple-template |
| 25 | builders: |
| 26 | - shell: | |
| 27 | echo "Template name: {template-name}" |
| 28 | echo "Job name: template-test-ids-{num}-{type}" |
| 29 | - shell: | |
| 30 | echo "{test_var}" |