jenkins-job-builder/tests/yamlparser/fixtures/github_cancel_builds_on_update_variable001.yaml
Daniel Belenky 3806c9c3d7 Handle cancel-builds-on-update values from vars
The code assumes that the value of cancel-builds-on-update is a boolean.
This fails when specifying the value of the param in a variable because when
deep_formatter formats the data, booleans turn into strings.

Also added tests for such case.

Change-Id: Ib1ec3d5545091be550bfe023e49c7982372d5b55
Signed-off-by: Daniel Belenky <daniel.belenky@gmail.com>
2018-11-14 10:47:36 +02:00

13 lines
272 B
YAML

---
- job-template:
name: 'github-pull-request-variable-test-true'
triggers:
- github-pull-request:
cancel-builds-on-update: '{test-var}'
- project:
name: test-true
test-var: true
jobs:
- 'github-pull-request-variable-test-true'