tasks/libs/common/gitlab.py
def create_pipeline(self, ref, variables=None):
        """
        Create a pipeline targeting a given reference of a project.
        ref must be a branch or a tag.
        """
        if variables is None:
            variables = {}

        path = f"/projects/{quote(self.project_name, safe='')}/pipeline"
        headers = {"Content-Type": "application/json"}
        data = json.dumps({"ref": ref, "variables": [{"key": k, "value": v} for (k, v) in variables.items()]})
        return self.make_request(path, headers=headers, data=data, json_output=True)

        Create a pipeline targeting a given reference of a project.
        ref must be a branch or a tag.
        
Create a pipeline targeting a given reference of a project.
ref must be a branch or a tag.
Create a pipeline targeting a given reference of a project . ref must be a branch or a tag .
def create_pipeline(self, ref, variables=None):
        if variables is None:
            variables = {}
        path = f"/projects/{quote(self.project_name, safe='')}/pipeline"
        headers = {"Content-Type": "application/json"}
        data = json.dumps({"ref": ref, "variables": [{"key": k, "value": v} for (k, v) in variables.items()]})
        return self.make_request(path, headers=headers, data=data, json_output=True)
def create_pipeline ( self , ref , variables = None ) : if variables is None : variables = { } path = f"/projects/{quote(self.project_name, safe='')}/pipeline" headers = { "Content-Type" : "application/json" } data = json . dumps ( { "ref" : ref , "variables" : [ { "key" : k , "value" : v } for ( k , v ) in variables . items ( ) ] } ) return self . make_request ( path , headers = headers , data = data , json_output = True )
Create a pipeline targeting a given reference of a project.
Create a pipeline targeting a given reference of a project .
"""
        Create a pipeline targeting a given reference of a project.
        ref must be a branch or a tag.
        """
self
ref
variables