Pass the Team City parameter to the PowerShell file

I have the following parameter set in Team City:

City Parameter Team

I want to pass this parameter to a powershell script I have (which will update the xml file with version number).

Step with parameter as argument

But this inserts the actual text %version%into the script (no replacement is made for the actual value of the parameter).

However, I know that my script works, because if I hardcode these values, then it works:

Hard coded step

Is there a way to get% version% to convert to the actual value when using a PowerShell script as an argument?

+4
source share
2 answers

"% version%" script Execute ps1 script "-File",

.

enter image description here

,

+3

(env.),

+2

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


All Articles