diff options
author | Mathieu Parent <math.parent@gmail.com> | 2019-09-05 10:47:34 +0200 |
---|---|---|
committer | Mathieu Parent <math.parent@gmail.com> | 2019-09-06 13:41:36 +0200 |
commit | cef3aa51a6928338c6755c3e6de78605fae8e59e (patch) | |
tree | 8f28490690f673a6e4a2efea77221dd503a2b20d /gitlab/config.py | |
parent | b7f33429c75ed2f464ebd9b4d3c56d3479df3faa (diff) | |
download | gitlab-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.py | 6 |
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: |