6bc5398336
The tag provides Jinja templating capabilities for generating parts of YAML structures. Two potential use cases are provided as test cases and are linked in the documentation. The new tag should also help address some use cases people were asking about, like here: https://groups.google.com/g/jenkins-job-builder/c/HkVZVuBDlKM. Change-Id: I96392e42c3c79a9be0a8f736506908701251dd62
16 lines
508 B
YAML
16 lines
508 B
YAML
# the purpose of this test is to check if the piece of YAML generated by
|
|
# !j2-yaml is deep-formatted properly; if not then double quotes introduced by
|
|
# !include-raw-escape would be left untouched and passed down to the output XML
|
|
# file, which would simply be wrong...
|
|
|
|
- job-template:
|
|
name: 'test-job-template'
|
|
publishers: !j2-yaml: |
|
|
- groovy-postbuild:
|
|
script: !include-raw-escape: ./jinja-yaml03.groovy
|
|
|
|
- project:
|
|
name: test-project
|
|
jobs:
|
|
- 'test-job-template'
|