Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 2.18 KB

README.md

File metadata and controls

49 lines (39 loc) · 2.18 KB

gocd-websocket-notifier

Build Status

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.

Setup

Download jar from releases & place it in /plugins/external & restart Go Server.

Configuration

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

Planned Enhancements

  • Send a reply if cannot notify listeners.

License

http://www.apache.org/licenses/LICENSE-2.0

Credits

Originally based on the gocd-slack-build-notifier by @AshwanthKumar.