Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing parameters from Teamcity (properties) to the command line

Tags:

teamcity

I am trying to pass a teamcity parameter (the project name) to a command line, but the command line does not pick it up. From teamcity's side, what is the way to do this?

I had done it before but something changed!

Thanks

like image 732
GurdeepS Avatar asked Oct 23 '22 13:10

GurdeepS


2 Answers

Just put %paramater_name% into Custom script or Command parameters fields.

like image 92
Aleš Roubíček Avatar answered Jan 02 '23 19:01

Aleš Roubíček


In order to pass parameter to the script you should define either environment or system parameter in your build configuration. A name of the parameter should start with evn. or system.. Parameters without such prefixes are called configuration parameters and they are not passed to the build. See documentation for details (I assume you are using TeamCity 6.5).

like image 40
neverov Avatar answered Jan 02 '23 19:01

neverov