I am trying to write a Bamboo plugin that will automatically manipulate the build commands, in order to automatically instrument them and capture various logs and outputs in order to run static analysis.
I see that there used to be a CommandDecorator class available to the plugins, but not available in latest Bamboo.
I could alternatively just find source code in the working directory and analyze that, like other plugins must do, but that has the disadvantage of not following the build as it downloads dependencies from various places (not typically stored in the working directory). This lowers the precision and accuracy of analysis.
The only alternative I can think of is requiring /some/ manual configuration of the user's build commands, and then the plugin would pick that up and do the remaining actions automatically... But that doesn't feel like a good user experience.
Thanks!