summaryrefslogtreecommitdiff
path: root/gitlab/config.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/config.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/config.py')
-rw-r--r--gitlab/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gitlab/config.py b/gitlab/config.py
index 0c3cff7..67301a0 100644
--- a/gitlab/config.py
+++ b/gitlab/config.py
@@ -122,6 +122,12 @@ class GitlabConfigParser(object):
except Exception:
pass
+ self.job_token = None
+ try:
+ self.job_token = self._config.get(self.gitlab_id, "job_token")
+ except Exception:
+ pass
+
self.http_username = None
self.http_password = None
try: