Teamcity: adding option to infinitely append to parameter - Stack Overflow

admin2025-04-18  3

On Teamcity 2024.03.1. I have a working pipeline which deploys an automation/test suite while passing a payload via TC params. One slight problem is that my payload/TC parameter value is not very intuitive to modify.

The expected kind of parameter value I’m hoping for (simplified) is:

{\”env_var\”:[\”val1\”,\”val2\”,\”val3\”,\”val1\”,\”val4\”,\”val2\”]}

Where I can I choose to add multiple values as well as duplicates.

I have an existing TC set up with intuitive checkboxes that does something similar but I can’t easily append duplicate values with a checkbox. The kind of setup I’m hoping for is:

  1. add multiple values
  2. specify the order of those values
  3. allow duplicates

But I can’t think of any way to implement this on TC side. My worry is I have to redesign my automation/test suite around having a simpler payload

转载请注明原文地址:http://anycun.com/QandA/1744922268a89525.html