@@ -1619,7 +1619,7 @@ class ProjectTrigger(GitlabObject):
16191619 _url = '/projects/%(project_id)s/triggers'
16201620 canUpdate = False
16211621 idAttr = 'token'
1622- requiredUrlAttrs = ['project_id' ]
1622+ requiredUrlAttrs = ['project_id' , 'description' ]
16231623
16241624
16251625class ProjectTriggerManager (BaseManager ):
@@ -2087,7 +2087,7 @@ def share(self, group_id, group_access, **kwargs):
20872087 r = self .gitlab ._raw_post (url , data = data , ** kwargs )
20882088 raise_error_from_response (r , GitlabCreateError , 201 )
20892089
2090- def trigger_build (self , ref , token , variables = {}, ** kwargs ):
2090+ def trigger_pipeline (self , ref , token , variables = {}, ** kwargs ):
20912091 """Trigger a CI build.
20922092
20932093 See https://gitlab.com/help/ci/triggers/README.md#trigger-a-build
@@ -2101,7 +2101,7 @@ def trigger_build(self, ref, token, variables={}, **kwargs):
21012101 GitlabConnectionError: If the server cannot be reached.
21022102 GitlabCreateError: If the server fails to perform the request.
21032103 """
2104- url = "/projects/%s/trigger/builds " % self .id
2104+ url = "/projects/%s/trigger/pipeline " % self .id
21052105 form = {r'variables[%s]' % k : v for k , v in six .iteritems (variables )}
21062106 data = {'ref' : ref , 'token' : token }
21072107 data .update (form )
0 commit comments