Releases: tcplugins/tcWebHooks
tcWebHooksPlugin 1.1-alpha9.155.145
Performance improvements, bug fixes, UI improvements
- Efficiency improvements when determining build delta information.
Now retrieves previousNonPersonalBuild by recursively comparing previous builds, rather than retrieving list of all previous builds and working through them until the most recent non-personal build is found. - UI improvement when editing authentication settings.
Fields that are marked required in WebHookAuthenticationParameter are now validated in the UI and an error shown when trying to save the webhook if missing.
tcWebHooksPlugin 0.9.154.84
Performance improvements and bug fixes
- Efficiency improvements when determining build delta information.
Now retrieves previousNonPersonalBuild by recursively comparing previous builds, rather than retrieving list of all previous builds and working through them until the most recent non-personal build is found. - Fix for HTTP time-outs defaulting to infinity. Now set to 120 seconds
Timeouts can be changed by editing main-config.xml and adding a section similar to the following:
<webhooks>
<http-timeout connect="10" response="10" />
</webhooks>
tcWebHooksPlugin 1.1-alpha8.140.143
Add support for editing Authentication Configuration - Issue #50
A new "Extra Config" tab has been added to webhook editing dialog, which allows one to choose an authentication type (or none) and enter relevant parameters for the authenticator.
This removes the need to edit the plugin-settings.xml file on the server for Authentication config changes, and therefore exposing these settings to TeamCity users.
As a result of this change, I have made large changes to the AJAX message structure (servlet) and rendering code (jQuery/Javascript). I think I've found all the bugs, but if UI quirks appear, please raise an issue.
Fix for new testing page showing incorrect URL - Issue #51
If the Teamcity URL was not configured to end with a "/" (set in Administration screen), then the URL displayed on /webhooks/endpoint-viewer.html page instructed users to send test webhook messages to an unusable URL.
The code now checks for the presence of the slash on the server URL, and handles the URL building correctly.
New jQuery animations and colours when editing/saving webhooks
My test system has hundreds of webhooks configured, and it's easy to forget which one I just edited. This change highlights - in a plesant yellow - the currently edited webhook (when the dialog is open) and then goes green when the webhook is successfully saved.
Also, when one tries to save a webhook before entering a URL or choosing a payload type, the relevant tab flashes a light red shade. Previously, the dialog would just fail to close, and if one was on another tab, the validation message would be hidden.
tcWebHooksPlugin 1.1-alpha7.122.138
Tidy up the styles of the WebHook edit dialog - Issue #16
- Dialog header and footer now look much better in TeamCity 9 & 10
- Adds syntax highlighting to the payload content tab
- Provides maximise/restore links to payload content tab
Add trigger-filters support - Issue #39
It's now possible to edit plugin-settings.xml and configure Regular Expressions which determine whether a webhook should be triggered. The regex are evaluated after the webhook is built and just before it sends the POST.
For example:
<trigger-filters>
<filter value="${branchDisplayName}" regex="^branch-xyz$" enabled="true"/>
<filter value="${buildInternalTypeId}" regex="^bt\d$" enabled="true"/>
</trigger-filters>
See this wiki page for more info
Nicer error handling for tailored_json payload errors - Issue #24
Better handling of the case where webhook.body is empty or missing for the tailored_json format.
Other Bug Fixes - Issues #41, #47 and #49
- Handle when filter list is not intialised.
- Pass the correct object back to the page so that the list of
webhooks for a build is the bean expected, not just a list.
tcWebHooksPlugin 1.1-alpha6.109.134
-
New Feature: New testing endpoint for viewing WebHook output from within TeamCity.
To use it, create a webhook and point at your http://teamcity_server/webhooks/endpoint.html
-
Bigfix: Fixes for checkboxes not updating correctly between webhook edit popups
-
Merged PRs:
Fixed rule 'Utility classes should not have public constructors' 5a088f2
Fixed rule 'The diamond operator ("<>") should be used. be8bce3
-
Other code cleanups:
Reduce some of the noise in the log by pushing payload output to DEBUG
HTTP responses between 200 and 299 are ok. Don't WARN in logs.
Add escapejson() method to templates
tcWebHooksPlugin 1.1-alpha5.81.121
- Authentication support added for Webhooks to destinations that require it (Issue #19)
- Initial support for "changesLoaded" build event (Issue #28)
- Fix for XML Templates in webhook-template.xml not loaded until edited (Issue #18)
- Fix for Flowdock templates not loading on Windows (Issue #20)
- Other small fixes
tcWebHooksPlugin 0.9.80.83
tcWebHooksPlugin 1.1-alpha4.54.105
- Fixes for ResponsibilityChanged events not triggering a webhook.
- Provides a better responsiblityChanged template for Flowdock (Fixes issue #14)
- Adds reason for not displaying _Root webhooks for non-admin users in Webhooks Project Tab. (Fixes issue #11).
- Converted Flowdock XML template to Java template (Fixes #15) Flowdock is now supported by default without the need to copy in an XML file.
- Added ability to use ${sanitise(varName)} or ${sanitize(varName)} in a template (Fixes #17)
- Added new project (tcwebhooks-template-builder) to build some templates from XML. This should make it easier to convert XML templates (not bundled) into Java templates (bundled with a release).
tcWebHooksPlugin 1.1-alpha3.50.100
- Fixes bug where XML declared Templates were not being found as valid when triggering webhook.
- Fix for UI templates not working for non-template aware (Legacy) webhooks.
- First cut of FlowDock templates (see Flowdock integration)
- Added Elastic templates for posting to ELK.
- Added icons to repo, so they can be referred to in templates.
- Merge branch 'build-comments-and-tags' into custom-templates. Adds support for messages containing commit details and comments/tags on a build.
- Fix for bug where templates declared in XML were not overriding Java templates.
- Added support for dates in templates.
- Fix starttime being empty for builds that are not "running" builds.
tcWebHooksPlugin 1.1.41.86
A version of the new template based tcWebHooks plugin ready for testing.
In this version there is support for rendering template contents based on the actual result of a build in the history.
Remember: It's alpha. Please backup your existing /BuildServer/config directory. Please raise any bugs here on github.
The following shows the new UI. One now chooses a template to use, and the payload format (xml, json, etc) is automatically determined.
One can also do a live preview of the content rendered by the template. Recent builds are listed to choose from.