kine/NVRAppDevOps

Using $env:TF_BUILD instead of $Build in Init-ALEnviroment

MJECloud opened this issue · 2 comments

Hello Kamil,

is there a reason why you use $Build in Init-ALEnviroment

if ($Build -ne 'true') {

instead of $env:TF_Build like you do in Compile-ALProjectTree?

if ($env:TF_BUILD) {

Greetings,
Maurice

kine commented

Hi Maurice,
I think it is just historical reason, when I was in need to test the script manually but "simulate" running under agent (passing manually the flag).

I have added Build flag enforcing when $env:TF_BUILD is set...

See commit e987b45

Hi Kamil,

good to know
Thank you! :)