plugin to populate "run custom build" dropdown parameters

I'd like to write a plugin that will populate dropdown prompt parameters.

I looked at similar requests / plugins, but no success:

- Is it possible to create a custom build parameters provider?

- How can I dynamically populate drop downs?

 

Custom build parameters seems to be populated after "Run Build" clicked in "Run Custom Build" window.

For StaticUIExtensions I can't find appropriate PlaceId  to make "Run Custom Build" page extension.

And I'd like to intercept the event before "Run Custom Build" window shown. 

Is it possible to do this ?

 

PS: when debug logging enabled I see in the logs only this on "Run Custom Build" window invoke:

DEBUG - jetbrains.spring.web.UrlMapping - Mapping [/runCustomBuild.html] to HandlerExecutionChain 
with handler [jetbrains.buildServer.controllers.RunCustomBuildController@1f21942] and 1 interceptor

 

1
2 comments
Avatar
Permanently deleted user

I found this example

https://github.com/yaegor/teamcity-buildsParameterType/blob/7d0323f9bad05a12e1053e5f66d1a563de375678/server/src/customParameterType/server/CustomParameterSelect.java 

There used ParameterControlProviderAdapter from package jetbrains.buildServer.controllers.parameters

But I don't know how to resolve dependency org.jetbrains.teamcity:web (if I understood correctly and adapter is in it)

0

web.jar can be found in the ..\webapps\ROOT\WEB-INF\lib in TeamCity install folder.

0

Please sign in to leave a comment.