Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

matt-richardson/gocd-websocket-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocd-websocket-notifier

This repository is archived

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.

About

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.

About

GoCD plugin to publish build notifications via websockets to any listener

Resources

Stars

Watchers

Forks

Packages

No packages published