正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

glab ci cancel job

Cancel CI/CD jobs.

Synopsis

Cancels one or more running CI/CD jobs by ID. You can pass multiple job IDs as separate arguments, in a comma-separated list, or in a quoted space-separated list.

To preview which jobs would be canceled without making changes, use --dry-run.

Use --force to cancel jobs that are in a protected environment.

glab ci cancel job <id> [<id>...] [flags]

Examples

# Cancel a single job
glab ci cancel job 1504182795

# Cancel multiple jobs, comma-separated
glab ci cancel job 1504182795,1504182796

# Cancel multiple jobs, space-separated in quotes
glab ci cancel job "1504182795 1504182796"

# Preview which jobs would be canceled
glab ci cancel job 1504182795,1504182796 --dry-run

# Force-cancel a job in a protected environment
glab ci cancel job 1504182795 --force

Options

      --dry-run   Show which jobs would be canceled, without canceling them.
  -f, --force     Force-cancel the job, even if it runs in a protected environment. (default false)

Options inherited from parent commands

  -h, --help          Show help for this command.
  -R, --repo string   Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.