Using $env:TF_BUILD instead of $Build in Init-ALEnviroment
MJECloud opened this issue · 2 comments
MJECloud commented
Hello Kamil,
is there a reason why you use $Build in Init-ALEnviroment
NVRAppDevOps/Init-ALEnvironment.ps1
Line 61 in 87e34a3
instead of $env:TF_Build like you do in Compile-ALProjectTree?
NVRAppDevOps/Compile-ALProjectTree.ps1
Line 67 in 87e34a3
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
MJECloud commented
Hi Kamil,
good to know
Thank you! :)