1

I am migrating from .gitlab-ci.yml to azure-pipelines.yml

In one of the lines inside the .gitlab-ci.yml, there are variables $CI_PROJECT_ID,$CI_PIPELINE_ID, $CI_JOB_ID.

I have figured out the equivalent for $CI_PROJECT_ID. In azure it is $(System.TeamProjectId)

However, need help in figuring out : $CI_PIPELINE_ID and $CI_JOB_ID

Looking forward for some suggestions

RCB
  • 479
  • 1
  • 9

1 Answers1

1

I'm not sure what these variables mean but consider this on Azure Pipelines:

  • $(System.DefinitionId) - The ID of the build pipeline.
  • $(System.JobId) - A unique identifier for a single attempt of a single job. The value is unique to the current pipeline.
  • $(Build.BuildId) - The ID of the record for the completed build.

All predefined variables you can find here

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107