Teamcity - required configuration parameter from the template

In Teamcity 9. * I have a build template with some configuration options that will differ depending on the project that will be created from it. This parameter is important and must be entered at creation time, otherwise the assembly will not work. So my question is:

Is there any way to configure this parameter as required during the build dialog? Teamcity actually has a Name field as required.

I tried to define the parameter as "Text" and the "Not empty" validator. Also use REGEX, but to no avail. This type of validator seems to work only with custom assemblies.

+4
source share
1 answer

No, unfortunately, this cannot be achieved.

The only way to see this is to look at your parameters after you have created the assembly configuration from the template, and this will show the required parameters (i.e. where they are indicated in the assembly steps / other variables somewhere)

Here you can see the configuration based on the template. Values ​​are not set in the template or at the point of creation of the assembly configuration

enter image description here

If you have not provided any of these values, your assembly will be in the assembly queue, and the error message “will not work on any agents due to the lack of parameter values”

+4
source

Source: https://habr.com/ru/post/1649506/


All Articles