- Notifications
You must be signed in to change notification settings - Fork673
Description
gl3 = gitlab.Gitlab('http://srvName', email='Jenkins_git', password='Passwd', api_version='4')
gl3.auth()
pr3 = gl3.projects.get(1)
commit = pr3.commits.get('1209b52497e3c0e15b004b1b46c4d727f4cb379f')
commit.statuses.create({'state':'failed','name':'Tests','target_url':'http://jenkinsurl/'})
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/gitlab/v4/objects.py", line 761, in create
return CreateMixin.create(self, data, path=computed_path, **kwargs)
File "/usr/lib/python2.7/site-packages/gitlab/exceptions.py", line 231, in wrapped_f
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/gitlab/mixins.py", line 165, in create
self._check_missing_create_attrs(data)
File "/usr/lib/python2.7/site-packages/gitlab/mixins.py", line 137, in _check_missing_create_attrs
raise AttributeError("Missing attributes: %s" % ", ".join(missing))
AttributeError: Missing attributes: sha