Parameter from Parameter Provider gets Overwritten by User Defined Parameter

I have a parameter provider plugin to provide a parameter let's say %teamcity.build.Param1%.

Teamcity requires me define %teamcity.build.Param1% as a user defined parameter in the build configuration if I want to use it in a build step(e.g. Powershell), otherwise all agents won't meet the requirements.

The problem is that the value of parameter is always the one from the User Defined Parameter(which is just an empty string), not from the ParameterProvider.

1 comment
Official comment

Hi,

To ensure that there's no agent requirement created you should also implement `jetbrains.buildServer.serverSide.parameters.BuildParametersProvider#getParametersAvailableOnAgent` and return name of your parameter, e.g. `teamcity.build.Param1`.

Please sign in to leave a comment.