Trigger pipeline via API
Kick off a pipeline from outside CI with a trigger token and custom vars
curl -X POST -F token=$CI_TOKEN -F ref=main -F 'variables[DEPLOY]=true' https://<host>/api/v4/projects/<id>/trigger/pipeline
- tool
- gitlab-ci4 commands
More gitlab-ci commands
-
gitlab-ci-local --job buildRun a .gitlab-ci.yml job locally in Docker; note: replaces removed gitlab-runner exec
-
gitlab-runner register --non-interactive --url https://<host> --token glrt-<id> --executor docker --docker-image alpine:latestRegister a runner with the new auth token; note: legacy registration-token is deprecated
-
gitlab-runner verify --deleteVerify configured runners and unregister ones GitLab no longer recognizes