Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Teamcity - Make a Configuration parameter mandatory from Template

In Teamcity 9.* I have a Build Template with some Configuration parameters that will be different depending on the project that will be created from it. This parameter is important and must be entered during creation otherwise the build will not work. So my question is:

Is there a way to configure this parameter as Mandatory during Build Creation Dialog? Teamcity actually has the Name field as mandatory.

I tried to define the parameter as "Text" and with validator "Not Empty". Also using the REGEX but without success. This kind of validator seems to work only running the Custom Builds.

like image 958
Tonino Avatar asked Jul 29 '16 08:07

Tonino


1 Answers

No, unfortunately there is no way to achieve this.

The only way to see this is by looking at your parameters after you've created a build configuration from a template and this will show the required parameters (i.e. they are referenced in build steps / other variables somewhere)

Here you can see a configuration based on a template. The values aren't set in the template or at the point of creating the build configuration

enter image description here

If you fail to supply any of these values, then your build will sit in the build queue and the error message will be "unable to run on any agents due to missing parameter values"

like image 147
Evolve Software Ltd Avatar answered Sep 22 '22 03:09

Evolve Software Ltd