summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorMathieu Parent <math.parent@gmail.com>2019-09-05 10:47:34 +0200
committerMathieu Parent <math.parent@gmail.com>2019-09-06 13:41:36 +0200
commitcef3aa51a6928338c6755c3e6de78605fae8e59e (patch)
tree8f28490690f673a6e4a2efea77221dd503a2b20d /gitlab/cli.py
parentb7f33429c75ed2f464ebd9b4d3c56d3479df3faa (diff)
downloadgitlab-cef3aa51a6928338c6755c3e6de78605fae8e59e.tar.gz
feat: add support for job token
See https://docs.gitlab.com/ee/api/jobs.html#get-job-artifacts for usage
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r--gitlab/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index 01d8851..0ff2f22 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -202,7 +202,7 @@ def main():
try:
gl = gitlab.Gitlab.from_config(gitlab_id, config_files)
- if gl.private_token or gl.oauth_token:
+ if gl.private_token or gl.oauth_token or gl.job_token:
gl.auth()
except Exception as e:
die(str(e))