tcWebHooksPlugin 1.2.0-alpha.3
Pre-releaseThe third alpha release of 1.2.0 version
This release fixes a few bugs, and adds some new features toward the tcWebHooks 1.2.x release milestone.
Note: No longer tested against TeamCity 9. Now compiled against TeamCity 10.0 libraries.
This version contains an implementation of a Centralised Webhook Management service and is a housekeeping change which is mostly not visible to users. It allows future simplification of webhook management.
It provides:
- A preliminary search tool. See
/webhooks/search.html
. I would have liked to hook into the TeamCity search page, but it's not extensible. - More efficient access to webhooks rather then iterating over each project in case it has webhooks configured.
- Searching across all webhooks rather than dealing with webhooks in a project context.
- A single (java) interface for CRUDing and managing webhooks.
- WebHooks Admin tab now has a link to view all webhooks across all projects because it's now efficient to find them.
- Ability to prevent a template from being deleted if it is in use #113
- Hides teamcity's
ProjectSettingsManager
and will ease transition toSProjectFeatureDescriptor
- Auto tagging of webhooks based on meta data. Click on the tag in a webhook search result to see other webhooks tagged the same.
- Find all webhooks which might trigger on this build (experimental, try
/webhooks/search.html?buildTypeId=<buildTypeId>
), even in parent projects. - Allows for future capability like:
* Copy webhook from project A to project B
* Import/Export WebHooks
* Add/Move webhooks when build moves/copied to new project
* Edit any webhook from search results, rather than from within a project context.
Other Issues resolved
Add SBuild, SBuildType and SProject to Velocity template payload.
Addresses issue #31, #145 and #118
Update old dependencies
- Now builds against TeamCity 10.0 and springframework 4.3.17.RELEASE.
- Updated httpclient, guava, commons-lang3,
Remove reference to payload format from plugin-settings.xml
Fixes issue #134 The reason for this change is because we now have a number of template
formats (jsonTemplate, jsonVelocityTemplate, xmlTemplate, xmlVelocityTemplate, etc), and templates should be able to change format - and templating engine - without having to update all the webhooks which reference that template.
Set buildResult to "interrupted" for build state "INTERRUPTED".
Addresses issue #56, where result was still "running" after build was interrupted.
Add mocked data for responsibility events
Fixes issue #48. This presented when using the webhook test and template test features to send test webhooks for responsibility events. Now the data is mocked so that the events have something to send in the webhook payload.