TFS 2015 Custom assembly variables not included as environment variables

I added a custom variable to my assembly in TFS 2015, however this variable does not appear in the environment variables when the assembly starts. I checked this by running

Get-ChildItem Env:

in a PowerShell script. There is a lot of documentation about predefined build variables, but the documentation on how to access user variables is pretty disappointing. Any help would be appreciated.

+4
source share
2 answers

So, I get it.

OCTOPUS_API_KEY. , , , env var.

-, , , - .

octopus.api.key OCTOPUS_API_KEY .

, , , env var friendly, , .

+7

, .

. _. , %VARIABLE_NAME%, $VARIABLE_NAME, $env:VARIABLE_NAME, .

, , "", .

0

Source: https://habr.com/ru/post/1611523/


All Articles