Skip to main content

A dashboard to highlight GoCD pipeline statuses.

Project description

gocd-dashboard
==============

A [GoCD] dashboard for showing pipeline status at a glance. Details about each
pipeline and all of it's materials (even grandparents!) are collected to show
the authors of commits that caused each pipeline to run.

![Screenshot](docs/screenshot.png)

Usage
-----

_Requirements: Python 3.3 or above, the `gocd_dashboard` python package (and
it's dependencies)._

```bash
gocd-dashboard run --host localhost --port 5000
```

You will need to create a JSON configuration file that describes your GoCD
server. The server will look `config.json` in the current directory, or use the
path of the `GOCD_DASHBOARD_CONFIG` environment variable.

```json
{
"gocd": {
"server": "https://gocd.example.com",
"username": "guest",
"password": "guest"
},
"groups": [
{
"name": "example",
"pipelines": [
"pipeline-a",
"pipeline-b"
]
}
]
}
```

Pipelines will be colored depending on their status:

- Failed: red.
- Running: yellow.
- Passed: white (green if the entire group has passed).

Development
-----------

_Requirements: Python 3.3 or above, the `virtualenv` python package, NodeJS
and the `npm` package manager._

Install the module into a Python virtualenv in development mode:

```bash
pip install -e .
```

Install a [Sass] compiler and [materialize.css]:

```bash
npm install
```

Compile CSS files using `node-sass`:

```bash
./node_modules/.bin/node-sass --watch gocd_dashboard/static --output gocd_dashboard/static
```

Run the development server:

```bash
FLASK_DEBUG=1 gocd-dashboard run
```

License
-------

Released under the MIT licence. See [LICENSE](./LICENSE).

Authors
-------

- [Sam Clements]

[GoCD]: https://www.go.cd/
[materialize.css]: http://materializecss.com/
[Sam Clements]: https://github.com/borntyping/
[Sass]: http://sass-lang.com/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gocd-dashboard-1.0.1.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

gocd_dashboard-1.0.1-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file gocd-dashboard-1.0.1.tar.gz.

File metadata

File hashes

Hashes for gocd-dashboard-1.0.1.tar.gz
Algorithm Hash digest
SHA256 af097af5d63748df0dfbe7b4dd7db536bd3c010f1e98799b73d84a25dd5ea98e
MD5 52b5e6244512f3b5dc0b3eb6a79f3dd0
BLAKE2b-256 0ed862d6bbaa9fd8e19b5772e54b0ad5a1caf4d6307eb2a8a87309d0697f5aab

See more details on using hashes here.

File details

Details for the file gocd_dashboard-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gocd_dashboard-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a1f11bc4747aa51a1428e1ed2c39e1d0f4a2dcb451459fcb66acfc7b156fbc0
MD5 bb766cc83c5e11b88d402dce06098a5b
BLAKE2b-256 f458d0d2d56cd8148a8ae7a41e00900dcae18f1e7f308dc814dd8d2d44cba387

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page