You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using the plugin this morning, I've found that if I add braces around my variables (as seen in the docs), then variable substitution does not work correctly (at least for values in the Values parameter).
Dropping the braces, leaving just $MYVARIABLE, instead of ${MYVARIABLE} does work, though. Having looked at the code and tests it seems both should be interchangeable, is this not the case?
The value I'm substituting is fetched from a Drone secret. My pipeline step looks something like this:
In the example above, ${RABBITMQ_URI} isn't substituted, but $RABBITMQ_URI is. In the debug logs, I can see -ReplVar: _RABBITMQ_URI => RABBITMQ_URI-- when I don't add braces, but this is missing with braces around the variable.
So far as I can tell, the variable name matches the regex that the plugin seems to use match environment variables, so I'm unsure why this isn't working. Is this the intended behaviour and I'm just misunderstanding?
I'm using Drone 1.2 with a version of the plugin built from the latest commit on master.
The text was updated successfully, but these errors were encountered:
After using the plugin this morning, I've found that if I add braces around my variables (as seen in the docs), then variable substitution does not work correctly (at least for values in the Values parameter).
Dropping the braces, leaving just
$MYVARIABLE
, instead of${MYVARIABLE}
does work, though. Having looked at the code and tests it seems both should be interchangeable, is this not the case?The value I'm substituting is fetched from a Drone secret. My pipeline step looks something like this:
In the example above,
${RABBITMQ_URI}
isn't substituted, but$RABBITMQ_URI
is. In the debug logs, I can see-ReplVar: _RABBITMQ_URI => RABBITMQ_URI--
when I don't add braces, but this is missing with braces around the variable.So far as I can tell, the variable name matches the regex that the plugin seems to use match environment variables, so I'm unsure why this isn't working. Is this the intended behaviour and I'm just misunderstanding?
I'm using Drone 1.2 with a version of the plugin built from the latest commit on master.
The text was updated successfully, but these errors were encountered: