Teamcity pass kubernetes service account key with configuration parameter not working

2/3/2020

I want to authenticate Kubernetes service account from Teamcity parameter passing.

I have configured teamcity configuration parameter like this: enter image description here

I am trying to pass it through the echo command: enter image description here

but it only dump the file to terminal instead of writing inside the file: enter image description here

-- Mitesh Gangaramani
devops
kubernetes
service-accounts
teamcity

1 Answer

2/3/2020

$%gcloudkey% tries to search for bash variable with the name that equals to the value of %gcloudkey% TeamCity variable. That's what the bad substitution message is about. Try "%gcouldkey%" instead

-- Evgeny Bovykin
Source: StackOverflow