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

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


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.1.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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for monitor_gitlab_jobs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 68b9168ade398353776c20c4a4c1fd25b7b54d177f12293c292206de7a3ac76d
MD5 7632adbd689391c60ba3579627e7b8f6
BLAKE2b-256 6440916abaff386aee19072ccc56fc2fde19a29b0b52439a99d80fa7016d7fd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for monitor_gitlab_jobs-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for monitor_gitlab_jobs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 118ae9d38a5abf0ccf6387a23bef1f7f30c08ee678cb31e9eaa8d500264d9e03
MD5 2802a6a7faa92c5a029ebd49b8c07a3e
BLAKE2b-256 de6c6bb61979bcb7e398acda4e5aed6a347ac10c53e9ecf7af6135aefcd81b3e

See more details on using hashes here.

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

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