Resolution: Not A Defect
I have a groovy function, runAnsiblePlaybook which I use to run ansible playbooks in a docker container:
This function is wrapped
This function is run twice (in a good case), to deploy against ref and live environments.
First time through it correctly interpolates the variables:
But then when it deploys to live I get:
Note: env_vars is identical for the two cases with the exception of the ts_release_env variable.
expansion of env_vars into env_string in the 'live' run is missing any params before paas_project and lacking the secret warning this time.
As these key variables are not in the expanded env_string, this subsequently leads to the docker run failure (not shown)
I've tried modifying the env_vars.each clause to use' ' rather than "":
but this does not perform the $entry expansion.
What am I missing?