This Question is Assumed Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1 Replies Last post: Mar 17, 2010 12:44 PM by Marina Grechko  
Pascal Roy Newbie 39 posts since
Mar 3, 2010
Currently Being Moderated

Mar 12, 2010 12:18 AM

Is there a way to use the system properties or environment variables into the build configuration?

It is possible to trigger a custom build from a script using HTTP with commands like this:

 

  http://TCServer/httpAuth/action.html?add2Queue=bt10&system.name=<property name>&system.value=<value>&env.name=<environment variable name>&env.value=<environment variable value>

 

in which we can specify environment variables and system properties.

 

Is there a way to use these into the Build Configurations?  Can I use one to specify the artifact paths, or command line parameters (for a command Line build) for instance?

 

customizing builds.PNG

 

Is there a way to use these params to customize the build configs at this stage?

 

Thanks

Marina Grechko JetBrains 600 posts since
Oct 12, 2009

Pascal,

 

Yes, you can use properties in build runner settings and artifact specification. Please refer to the following section in our doc for using properties: http://confluence.jetbrains.net/display/TCD5/Using+Properties#UsingProperties-UsingPropertiesinBuildConfigurationSettings.

Please note that you will need to definy properties before use them (see more at http://confluence.jetbrains.net/display/TCD5/Defining+Properties).

More Like This

  • Retrieving data ...