Crawling-GoCD is a library that works for crawling the goCD build histories of pipelines and calculate the metrics.
Installation
$ pip3 install crawling-gocd
Usage
- Input configration in the file
crawling-gocd.yaml
pipelines:
-
name: account-management-normal-master
calc_grouped_stages:
ci:
- code-scan
- test-integration
- build
qa:
- flyway-qa
- deploy-qa
start_time: 2019-07-10 00:00:00
end_time: 2019-08-12 23:59:59
-
name: account-management-normal-release
calc_grouped_stages:
uat:
- flyway-uat
- deploy-uat
global:
start_time: 2019-07-01 00:00:00
end_time: 2019-08-12 23:59:59
Keys in the config file:
pipeline name is the string in the history API URL.
pipeline calc_grouped_stages includes each phase needed to calculate metrics.
Such as, if we want to calculate the deployment frequency for QA environment, and the QA deployment has two stages.
If one of the two stages fails, determines QA deployment failed, so we configure the qa phase has flyway-qa、deploy-qa.
global start_time and global end_time, determines the time slot for crawling pipeline histories.
Also, there are pipeline start_time and pipeline end_time, they have a high priority to global start_time and global end_time.
- Code invoking
from crawling_gocd.portal import Portal
Portal().serve()
- Set environment variables
Need set the environment variablesGOCD_SITE、GOCD_USER、GOCD_PASSWORDbefore running the application.
Expansibility
So far the crawling URL is according to the goCD version 18.11.
Metadata
Release files for crawling-gocd 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crawling-gocd-1.3.0.tar.gz | 9.5 kB | Without provenance | Details for crawling-gocd-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crawling_gocd-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for crawling_gocd-1.3.0-py3-none-any.whl |
Total release size: 26.6 kB
Release files / crawling-gocd-1.3.0.tar.gz
| Download URL | crawling-gocd-1.3.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
517e92bd5d2345cc4ce99d0d580cf9f257e96fe38565500c88968b12ef0a9fc9
|
|
BLAKE2b-256 checksum How to use checksums |
3b916844cb9d865307158592c5334f1c62b69b2653888e83bf5258da182036c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.1
|
Release files / crawling_gocd-1.3.0-py3-none-any.whl
| Download URL | crawling_gocd-1.3.0-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8d74086019b40ce182dd7b3b639c4685082d047431baafac016cf590ce0b048
|
|
BLAKE2b-256 checksum How to use checksums |
6f3af6918ceb539881b10cc9fb100da4ead08425807f445163d24f1861845db3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.1
|
Security for crawling-gocd 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.