- Do work in a Builder or Publisher
- Capture results in a data structure
- Wrap results in an action - add to the build
- Provide a project action
So, to summarise, do the work in a Builder or a Publisher. Put the results into a data structure of some sort. Wrap that data structure in an action and add it to the build. The build will serialise it away for you. Provide a project action to display that data in some attractive way.
If you want your project to splat data on the project page, provide a floating box and/or implement prominentprojectaction.
For build actions, simply provide a summary.jelly. If you want to add a little icon into the list of builds, implement BuildBadgeAction.
Builders and publishers operate on a project by project basis. When you create a project you choose how its made up and which builders and which publishers it uses. What if you want to add some capability or option to every project? There are several backup plugins - shelve for instance - which add something into the sidebar menu. Those extensions are called, for reasons I'm not clear on, project properties.