/gitlabci

GitLab CI stuff

Primary LanguagePythonMIT LicenseMIT

little helpers for GitLab CI

This repository is a collection of little helpers and convenience functions using python-gitlab to access GitLab's API. I'm doing this for myself and for a very specific use case, so don't expect these scripts to be all-rounders, they are not meant to be that.

general prerequisites

All the Python scripts require at least the following package:

pip3 install python-gitlab   # GitLab API

configuration file

All the scripts depend on a configuration file $XDG_CONFIG_HOME/gitlabci.ini for credentials:

[gitlab]
server = https://gitlab.com
project_id = 1234567
access_token = secret
  • You can find the project_id in the top left corner of you project's overview page, directly below the title.
  • You need to create a personal access token for access_token.

Overview

jobmon

Print a self-updating status page about specific GitLab CI jobs in the terminal.

jobmon1

artifacts_by_sha

Get a list of all CI artifacts for a given commit hash.

artifacts_by_sha1

License

MIT