-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
When using manifest variable substitution, booleans in the pipeline.yml are interpreted differently than when passed via a vars_file. In one case, booleans must be quote wrapped and in the other they must not be.
Example When Set In Pipeline
Broken config:
- put: development
params:
path: snapshot/*.war
manifest: src-dev/cf/manifest.yml
vars:
random_route: trueCorresponding error:
Incorrect Usage: invalid argument for flag `--var' (expected []template.VarKV): Deserializing variables 'random_route=%!s(bool=true)': yaml: could not find expected directive name
Working config:
- put: development
params:
path: snapshot/*.war
manifest: src-dev/cf/manifest.yml
vars:
random_route: 'true'Example When Set In Vars File
Config:
- put: development
params:
path: snapshot/*.war
manifest: src-dev/cf/manifest.yml
vars_files:
- /tmp/build/put/src-dev/cf/devstar.ymlBroken devstar.yml:
random_route: 'true'Corresponding error:
yaml: unmarshal errors:
line 7: cannot unmarshal !!str `true` into bool
Working devstar.yml:
random_route: trueConcourse Deployment
Version: 4.2.1
IaaS: AWS GovCloud
Deployment: BOSH
Metadata
Metadata
Assignees
Labels
No labels