TeamCity treating parameter as a string

Hello.

I got a Build Configuration Template in my <Root project>.

In the Parameters section, I have the following 3 configuration parameters:

deployment.username

deployment.password

deployment.destinationServer01

In the Parameters section, I also have powershell.args01 configuration parameter with the value of

-username %deployment.username% -password %deployment.password% -computer %deployment.destinationServer01%

In the same template, I have a "PowerShell" build step where Script arguments section looks like this:

Script arguments: %powershell.args01%

 

I have 3 Build Configurations that inherit from the above template.  This setup works perfectly in all 3 configurations.  Today, I'm copying one of the configurations to create yet a forth configuration that would inherit from the above template.  All of a sudden, in this line

-username %deployment.username% -password %deployment.password% -computer %deployment.destinationServer01%

%deployment.destinationServer01% does not get evaluated anymore and just gets passed to my script as %deployment.destinationServer01% as oppose to its actual value.  Both %deployment.username% and %deployment.password% are still evaluated fine.

I don't know what differences to look for, because there aren't any.  This is defined in a template and all three configurations that inherit from it work just fine.  The only difference is that this 4th config has a dependency on one of the other 3 configs.  But this involves playing with Artifacts.  I don't change the script or the arguments.

Any help - I would greatly appreciate it.  Thanks!

 

0

Please sign in to leave a comment.