It's been years since I've used GoCD, and I dont have the time (or interest) in maintaining this.
Please feel free to fork and continue running with it.
Note: GitHub is warning me about known security vulnerabilities. If you want to use this, please fork and update to resolve.
WebSocket based GoCD build notifier
Listens to notifications from the GoCD (15.2+) notification api, and publishes them over websockets. This initial use case is for low impact, fast build notifiers, such as gocd-windows-tray-build-notifier.
The only supported notification (the only one available as of Feb 2015) is the stage-status.
This has been enhanced to provide further pipeline instance information (via the pipeline
history api and
includes the latest run in the message as x-pipeline-instance-details
.
If you run into any issues please raise it, or better yet, send a PR. Please note, I am not a Java developer, so any (constructive) feedback gratefully appreciated.
Download jar from releases & place it in /plugins/external & restart Go Server.
Plugin listens on port 8887 on all ip addresses by default. To edit these, create a (standard java properties) file with the name gocd-websocket-notifier.conf in the home directory of the user that runs go.
port=8888
host=127.0.0.1
Plugin uses default Go server HTTP port 8153. To edit, add the following to the .conf
goHttpPort=8080
If basic authenication is required for Go Api, add them to the same .conf file as follows:
goUser=go.user
goPassword=myGoPassword
- Send a reply if cannot notify listeners.
http://www.apache.org/licenses/LICENSE-2.0
Originally based on the gocd-slack-build-notifier by @AshwanthKumar.