summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index f8b0dce..67f80d0 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -2624,7 +2624,8 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
"""
path = '/projects/%s/trigger/pipeline' % self.get_id()
post_data = {'ref': ref, 'token': token, 'variables': variables}
- self.manager.gitlab.http_post(path, post_data=post_data, **kwargs)
+ attrs = self.manager.gitlab.http_post(path, post_data=post_data, **kwargs)
+ return ProjectPipeline(project.pipelines, attrs)
@cli.register_custom_action('Project')
@exc.on_http_error(exc.GitlabHousekeepingError)