Parameter not working on buid configuration
Hi everyone,
I've create a build chain like this: 1- Build > 2- Test > 3- Deploy
I've set some Parameters such as %BranchNo% in step 3, and want to call this parameters in step 1 , but when I run step 3 and enter this Parameter for example BranchNo= 18 , build log show me this:
(script) rm -rf %BranchNo% > (output) rm -rf (here is empty)
while it should be like this
(script) rm -rf %BranchNo% > (output) rm -rf 18
FYI: I try to use different Types of Build Parameters (Environment variables, System properties, Configuration parameters)
any idea?
TeamCity version 2017.2.3 (build 51047)
Please sign in to leave a comment.
Hello, I think the best way is to take a look here.
https://confluence.jetbrains.com/display/TCD10/Creating+and+Editing+Build+Configurations
There is more than one possibility to resolve your problem.
Hi Myazdi and Mathieu,
We do have the ability to overwrite parameters from an early part of the chain when triggering, but it has to be done during triggering. Here's the actual link to that specific bit of the documentation: https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters#PredefinedBuildParameters-OverridingDependenciesProperties
With this, you would set a parameter in step 3, as %reverse.dep.<build_1>.<parameter_name>% and assign it a value either fixed in the build configuration, or as a custom parameter on a custom build run. That value will then be passed to build 1.