Build config template parameters are not usable in the artifacts dependencies
Hi
I have a project A which has build configuration templates T1, T2,T3.
my requirement is to create a build configuration out of template T1 and use the T1 parameters in my build.
T1 has defined many common parameters.
Say T1 has defined parameter parameter1=xxx
Created a build B1 from T1 and i can see the parameter1 available in the B1. (good so far)
Now i created artifact dependecy for my B1 and referenced parameter1 in the artifacts path.
The above step created parameter1 in the B1 connfiguration paramters and says <value is required>.
I see parameter1 twice one says inherited from T1 and has the value 'xxx' and other expecting value to be defined.
This is the problem with template parameters only. if i define the parameter in project A and reference in build B1 artifacts dependency it works (no duplicate parameters in B1).
I am using team city version "TeamCity Enterprise 9.1.7 (build 37573)".
Thanks,
Panduranga
Please sign in to leave a comment.
Hi Panduranga,
First, could you make sure that there isn't some sort of typo or special character that makes the names different?
9.1.7 is relatively old and out of support. With that in mind, a lot of work has been put into the template system since. I have just tried it in 2017.1.3 and it works fine, so it's possible there was an issue and it got fixed. Could you try upgrading?
It's working, it;s the special characters in the parameters which is making that difference.
Thank you very much.
Got it, could you please try setting up a test on a newer release and see whether it works for you? I cannot reproduce it there, but I might be missing something.
It's working, it;s the special characters in the parameters which is making that difference.
Thank you very much.