module Gitlab::Client::PipelineTriggers
def run_trigger(project, token, ref, variables = {})
-
(Gitlab::ObjectifiedHash)
- The trigger.
Parameters:
-
variables
(Hash
) -- A set of build variables to use for the build. (optional) -
ref
(String
) -- Branch or tag name to build. -
token
(String
) -- The token of a trigger. -
project
(Integer, String
) -- The ID or name of the project.
Other tags:
- See: https://docs.gitlab.com/ce/ci/triggers/README.html -
def run_trigger(project, token, ref, variables = {}) post("/projects/#{url_encode project}/trigger/pipeline", unauthenticated: true, body: { token: token, ref: ref, variables: variables }) end