Referring to local variables in Concourse credentials file

936 Views Asked by At

I have the following credentials.yml file :

test: 123
test2: ((test))

When I upload a pipeline, feeding it with the credentials file , whenever test2 variable is used it is not interpolated and I'm getting a "undefined vars : test" error in Concourse.

Is it even possible to refer to another variable in the very same yaml or do you have to always refer to variables in a configured credentials manager (e.g. Vault) ?

1

There are 1 best solutions below

0
On

Solved it using anchors and aliases . Sadly keys containing dots or hyphens do not work at all.

e.g. :

test: &test 123
test2: *test