Collect status of CI systems and return them via access point as XML or JSON.
- Python 3.7
- pipenv (accessible via $PATH)
- git clone
- cd cihub
- pipenv install
- cp .env.in .env
- vi .env
- pipenv shell
- python cihub.py --init-db
Fill database with example content:
- python cihub.py --example-data
- pipenv shell
- python cihub.py
Starts server on http://0.0.0.0:8000
- http://0.0.0.0:8000/cc.xml XML representation
- http://0.0.0.0:8000/cc.json JSON representation
Installation:
- pipenv install --dev
Activation:
- pipenv shell
Execution:
- pipenv run pytest
- pipenv shell
- python cihub.py --wipe-older-than <NUMBER-of-DAYS>
Activation:
- pipenv shell
Execution:
- pipenv update --outdated
- pipenv update
Install Notification Plugin.
Create Notification endpoint in the job configuration.
- Format: JSON
- Protokoll: HTTP
- Event: "Job completed"
- URL Source: https://<cihub-host:port>/api/jenkins.json
Create a webhook
URL: https://<cihub-host:port>/api/bitbucket.json
Choose from a full list of triggers:
- Build status updated
Add to your .travis.yml:
notifications: webhooks: https://<cihub-host:port>/api/travis.json
Add a webhook in Settings --> Webhooks in the repository or for the organization.
URL: https://<cihub-host:port>/api/github.json
Content type:
application/json
Secret: leave this field empty
Which events would you like to trigger this webhook?
- Choose „Let me select individual events.“
- Select only „Check suites“ (this may require to deselect some other check boxes)
- Add a webhook in Settings --> Webhooks in the repository or for the organization.
- URL: https://<cihub-host:port>/api/gitlab.json
- Secret Token: leave this field empty.
- Trigger:
- Select only "Job events" (thus deselect "Push events")
- Add webhook.