Skip to content

Instantly share code, notes, and snippets.

@AndreKR
Last active September 13, 2017 19:06
Show Gist options
  • Save AndreKR/79f0c11783ebf38642653fccc28cd35e to your computer and use it in GitHub Desktop.
Save AndreKR/79f0c11783ebf38642653fccc28cd35e to your computer and use it in GitHub Desktop.
Download the latest artifacts from GitLab
# ZIP:
wget --header="PRIVATE-TOKEN: $GITLAB_TOKEN" "https://<gitlab>/<group>/<project>/builds/artifacts/master/download?job=<jobname>"
or
wget --header="PRIVATE-TOKEN: $GITLAB_TOKEN" "https://<gitlab>/<group>/<project>/-/jobs/artifacts/master/download?job=<jobname>"
# Single file:
wget -O /path/to/file --header="PRIVATE-TOKEN: $GITLAB_TOKEN" "https://<gitlab>/<group>/<project>/builds/artifacts/master/raw/<filename>?job=<jobname>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment