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:

//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

1 comment

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).

0

Please sign in to leave a comment.