Download the gitlab artifacts matching a git repo or submodule, or provided repo http url (optionally with @<commit>)
Project description
This Python utility is used to download artifacts from gitlab ci.
It can be used to grab artifacts from a CI job matching a git repo (or submodule) at the current commit, or from the https url of a repo, optionally at provided commit ref
gitlab-ci usage
When used in Gitlab CI a project / private token with api access will be required or user:pass specified in the url. Currently (Jan 2022) the CI Job Token doesn’t have enough api access to find the correct artifacts to download.
developer/desktop usage
If run from desktop the default browser will be used, however in this case an @<commit hash> cannot be used as the gitlab artifact urls don’t support this: https://docs.gitlab.com/ee/api/job_artifacts.html#download-the-artifacts-archive
To download build artifacts for the current git project, simply run the tool from within the project folder and refer to the job whose artifacts are needed, eg:
- ::
cd myproject gitlab-download-artifacts . build
The artifacts from the build job are downloaded and extracted into the current folder.
To download the artifacts for a submodule it can be used like:
gitlab-download-artifacts ./submodule build
The artifacts will be downloaded from the commit the submodule is checked out at and expanded into its folder.
Alternatively to just grab from a project page:
gitlab-download-artifacts https://gitlab.com/alelec/gitlab-download-artifacts@65ad5e1 release
version: 1.3+gc99b799
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 Distributions
Built Distribution
Hashes for gitlab_download_artifacts-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7795f95e32db88274283cd780ce13dcfb55351886e3b305043ac84b4997e3f3e |
|
MD5 | f573b64aea75dc67a24020a63331f251 |
|
BLAKE2b-256 | 2785f54ef10a0481e3751b8c94babddcb0248ef3b5bd153f3eea616184a1606b |