Skip to content
Discussion options

You must be logged in to vote

Stage Names (environment variables)

Using environment variables does not work e.g. {{$env:RELEASE_ENVIRONMENTNAME}} it is all down to how Handlbars does the template expansion.

If you using an inline handlebars template (in the YAML pipeline) you can use the $(release.environmentname) syntax as this gets expanded before being passed into the Handlbars process.

The other option is to write a custom handlebars extension to get the environment variable

Tag Filtering

Again a custom handlebars extension maybe the answer again here, sometime it is easier to sort the logic on JavaScript.

That said, I can't see anything wrong with the Handlebars logic you have. In cases such as this I tend to out…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@metda11
Comment options

Answer selected by metda11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment