monitor Gitlab job statuses on the CLI
Project description
monitor-gitlab-jobs
Script to observe the status of all jobs in your latest Gitlab pipeline
Installation
pip install monitor-gitlab-jobs
Usage
usage: monitor-gitlab-jobs [-h] [--token TOKEN] [--ref REF] [--gitlab_url GITLAB_URL] project_id
monitor Gitlab job statuses on the CLI
positional arguments:
project_id
options:
-h, --help show this help message and exit
--token TOKEN
--ref REF
--gitlab_url GITLAB_URL
Features
- print a pretty table of all jobs of the latest pipeline (optionally given a ref) and their statuses
- update the table until all jobs are finished
- returns 0 if all jobs are either successful or skipped, 1 otherwise
Example outputs
$ monitor-gitlab-jobs 1234 --token $GITLAB_ACCESS_TOKEN --gitlab_url $GITLAB_URL --ref 0.6.4
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Job ┃ Status ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ run_tests │ ✅ success │
│ build_docker │ ✅ success │
└──────────────────────────┴────────────┘
No jobs failed
$ monitor-gitlab-jobs 5678 --token $GITLAB_ACCESS_TOKEN --gitlab_url $GITLAB_URL
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Job ┃ Status ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ unit_test │ 🏃 running │
│ integration_test │ 🕓 pending │
│ lint │ ✅ success │
│ build │ ✅ success │
└───────────────────────────┴────────────┘
⠹ waiting for jobs to finish...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monitor_gitlab_jobs-0.1.1.tar.gz.
File metadata
- Download URL: monitor_gitlab_jobs-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b9168ade398353776c20c4a4c1fd25b7b54d177f12293c292206de7a3ac76d
|
|
| MD5 |
7632adbd689391c60ba3579627e7b8f6
|
|
| BLAKE2b-256 |
6440916abaff386aee19072ccc56fc2fde19a29b0b52439a99d80fa7016d7fd5
|
Provenance
The following attestation bundles were made for monitor_gitlab_jobs-0.1.1.tar.gz:
Publisher:
publish.yml on davekch/monitor-gitlab-jobs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monitor_gitlab_jobs-0.1.1.tar.gz -
Subject digest:
68b9168ade398353776c20c4a4c1fd25b7b54d177f12293c292206de7a3ac76d - Sigstore transparency entry: 252085650
- Sigstore integration time:
-
Permalink:
davekch/monitor-gitlab-jobs@52fbef91f41f83d0445120ff846c59181c705c3f -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/davekch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@52fbef91f41f83d0445120ff846c59181c705c3f -
Trigger Event:
release
-
Statement type:
File details
Details for the file monitor_gitlab_jobs-0.1.1-py3-none-any.whl.
File metadata
- Download URL: monitor_gitlab_jobs-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
118ae9d38a5abf0ccf6387a23bef1f7f30c08ee678cb31e9eaa8d500264d9e03
|
|
| MD5 |
2802a6a7faa92c5a029ebd49b8c07a3e
|
|
| BLAKE2b-256 |
de6c6bb61979bcb7e398acda4e5aed6a347ac10c53e9ecf7af6135aefcd81b3e
|
Provenance
The following attestation bundles were made for monitor_gitlab_jobs-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on davekch/monitor-gitlab-jobs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monitor_gitlab_jobs-0.1.1-py3-none-any.whl -
Subject digest:
118ae9d38a5abf0ccf6387a23bef1f7f30c08ee678cb31e9eaa8d500264d9e03 - Sigstore transparency entry: 252085652
- Sigstore integration time:
-
Permalink:
davekch/monitor-gitlab-jobs@52fbef91f41f83d0445120ff846c59181c705c3f -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/davekch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@52fbef91f41f83d0445120ff846c59181c705c3f -
Trigger Event:
release
-
Statement type: