CI_JOB_NAME とは?
CI_JOB_NAME は実行中のジョブの名前で、.gitlab-ci.yml のキーに対応します。
CI_JOB_NAME は、どのジョブから呼び出されたかを知る必要がある共有スクリプトや、ジョブスコープのリソースに名前を付ける際に便利です。
補足
並列ジョブや matrix ジョブでは、GitLab がインデックスを付加するため、名前は並列インスタンスごとに区別されます。
重要なポイント
- CI_JOB_NAME は YAML のジョブキーです。
- 共有スクリプトの呼び出し元を区別します。
- 並列ジョブにはインデックスの接尾辞が付きます。
関連ガイド
What Is CI_JOB_ID?CI_JOB_ID is the unique ID of a GitLab CI job. Learn how to use it for artifacts and API calls.
What Is CI_JOB_STAGE?CI_JOB_STAGE is the pipeline stage of the current GitLab CI job, like build, test, or deploy. Learn how stage…
What Is a Job in GitHub Actions?A job in GitHub Actions is a group of steps that runs on a single runner. Jobs run in parallel by default and…