Access to Build Configuration information from Trigger JSP code (Trigger Configuration Parameters)

I'm trying to modify the "TeamCity-Gerrit Build Trigger plugin", so I can reuse the VCS Root information (and/or the SSH keys) from the Project (instead of entering URL to Gerrit, user name, path to ssh key, etc).

I have been through a lot of documentation and a lot of existing (trigger) plugins, but I haven't found a way to get a reference to an instance (of something) that can supply me with information about the current Build Configuration/Project inside the JSP code (that reads all the configuration parameters for the trigger).
From there I expect it is easy to get the VCS Roots and let the user select between all the defined ones.

1 comment
Comment actions Permalink

I found out that getting to the SSH key was not that easy, so I have decided to go another way.

0

Please sign in to leave a comment.