Same parameter on different build configuration

I have two separate build configuration that want use a same parameter.

 

here is the scenario:

Build configuration A run on server 1

Build configuration B run on server 2

 

1-How should I define parameter (which type , configuration or system or environment)?

2-Where should I define parameter (in build configuration A or B or on root project)?

 

Thanks,

0
1 comment

Hi

When you say "run on server x", do you mean "run on Agent x installed on server x, but both set up on a central server"?

If that's the case, you can set the parameter at the project level, and all build configurations will inherit it, as long as you don't overwrite it at the build configuration level. You can also create a build template and make both build configurations inherit from it, to share some configuration, be it parameters or more in depth configuration.

If the parameter already exists but you want to use the one from A when you are running B, then you can set up a dependency (be it snapshot or artifact) and use the dependency properties feature: https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters#PredefinedBuildParameters-DependenciesProperties

If you have them on entirely different servers, I'm afraid there is little way to "use the same" parameter. If you want to modify one on one server when you change it on the other, you can use the REST API to modify it wherever it is, but there is no other way to do it.

0

Please sign in to leave a comment.