openalm / Extension-UtilitiesPack

Release Management utility tasks
Other
34 stars 38 forks source link

Add cross environment configuration #74

Closed Atvaark closed 7 years ago

Atvaark commented 7 years ago

This optionally allows users to configure variables and config changes in the 'default' environment in addition to concrete environments (e. g. Dev, Prod). The changes defined in the 'default' environemnt will be applied before the changes defined in the concrete ones. This allows overwriting default changes with changes that are environment specific.

Using just a single 'default' environment to insert tokens and configuring the token values via TFS variables will be possible with this change.

Compared to #17 this also allows defining cross-environment CustomVariables.

A review and tests (especially for the PowerShell 3 script) would be appreciated, as I couldn't get the tokenizer unit tests to run.

harshil93 commented 7 years ago

@Atvaark Can you also add some test cases around this

Atvaark commented 7 years ago

I added some unit tests for both default variables and config changes.

harshil93 commented 7 years ago

@Atvaark You will need to bump up the minor version in task.json also.

Also change the .MD file which has the documentation describing this new functionality. I am reviewing the changes, we should be able to get this in, in the next few days.

Atvaark commented 7 years ago