Custom plugin to expose parameter exposed during build? Possible?
I have a build that calculates a value during build-time that I'd like to expose to TeamCity and have TeamCity use as the displayed build number for that build. Is this possible with the current APIs for developing plugins?
Is writing a custom BuildParametersProvider going to allow me to parse that value from a build file at some point after the build has started on the agent?
http://javadoc.jetbrains.net/teamcity/openapi/current/jetbrains/buildServer/serverSide/parameters/BuildParametersProvider.html
Please sign in to leave a comment.
Hi Brian
Build numbers can be reported from build scripts by service messages.
Do you really need a plugin?
Michael
Wow, great feature I had no knowledge of, thanks. Will this work within the Maven Runner though?
yes, this is universal approach to interact with externals tools.
Thanks Michael that was exactly what I needed. I added the following to my Maven pom.xml and it works for continuous and release builds: