cli/docs/source/ci/run-trig.md

1.3 KiB

stage group info
Create Code Review To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments

glab ci run-trig

Run a CI/CD pipeline trigger

glab ci run-trig [flags]

Aliases

run-trig

Examples

glab ci run-trig -t xxxx
glab ci run-trig -t xxxx -b main
glab ci run-trig -t xxxx -b main --variables key1:val1
glab ci run-trig -t xxxx -b main --variables key1:val1,key2:val2
glab ci run-trig -t xxxx -b main --variables key1:val1 --variables key2:val2

Options

  -b, --branch string       Create pipeline on branch/ref <string>
  -t, --token string        Pipeline trigger token (can be omitted only if CI_JOB_TOKEN environment variable is set)
      --variables strings   Pass variables to pipeline in format <key>:<value>

Options inherited from parent commands

      --help              Show help for command
  -R, --repo OWNER/REPO   Select another repository using the OWNER/REPO or `GROUP/NAMESPACE/REPO` format or full URL or git URL