Skip to main content

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

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


Download files

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

Source Distribution

monitor_gitlab_jobs-0.1.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monitor_gitlab_jobs-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file monitor_gitlab_jobs-0.1.0.tar.gz.

File metadata

  • Download URL: monitor_gitlab_jobs-0.1.0.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

Hashes for monitor_gitlab_jobs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d4193bdf8d900de3f7c5bdc2854dd90961f811ff732ccf02d2f8d23fb54e91e
MD5 818f50412f1c755d72ceabcb3cabe133
BLAKE2b-256 e3784876c24f0b8aac87d2a5c403119670aa9a152ea9b499ba7d5a029f6751e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for monitor_gitlab_jobs-0.1.0.tar.gz:

Publisher: publish.yml on davekch/monitor-gitlab-jobs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file monitor_gitlab_jobs-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for monitor_gitlab_jobs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e8aad4825ca60989f5a9eb0b1d1cc16af2d0e59b39e67c4e3602dc4f7b10231
MD5 3dc801a11fbcc9eb11927aba3bd4546b
BLAKE2b-256 236d52b4af157e52ee836a93b1156aeea24ea7aaac0952f14e1713cabdd63aa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for monitor_gitlab_jobs-0.1.0-py3-none-any.whl:

Publisher: publish.yml on davekch/monitor-gitlab-jobs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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