Skip to content

Python library to parse Thoughtworks GoCD server APIs

License

Notifications You must be signed in to change notification settings

greenmoss/gocd-parser

Repository files navigation

gocd-parser

This Python library parses Thoughtworks GoCD server APIs.

Usage

Scripts

Run the scripts in bin with option --help.

All of these scripts output json. So they should be usable by any other scripts on your system, without needing to import as a Python module.

Modules

You can also import the modules and use them directly. For examples of how to do this, refer to the scripts in the bin directory.

Installation

  • See requirements.txt.

Ubuntu

  • apt-get install libz-dev liblz-dev libxslt1-dev python-dev

Testing

Automated

  • pip install -r requirements-testing.txt
  • py.test

As a user

  • Follow the Thoughtworks instructions to set up a testing GoCD server
  • Run your tests against the test VM
    • Example invocation: get_value_stream_status.py -g http://localhost:8153/go -n Deploy_Consumer
  • To test value stream status detection, pause the Consumer_Website pipeline.
  • Now get_value_stream_status.py will show the above pipeline is blocking.

Authors

About

Python library to parse Thoughtworks GoCD server APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages