Archie G. Quiñones
Archie G. Quiñones

Reputation: 13688

Is it possible to track the number of times a Gitlab CI Job is run?

I am new to Gitlab CICD. I am trying to automate my android versionCode.

I have a job which lets say "deploy". I was wondering whether I could have the number of times this job run.

This would allow me to have a number to use as the android versionCode.

Any way to do this?

Upvotes: 1

Views: 2391

Answers (1)

Ivan
Ivan

Reputation: 9695

Have a look at $CI_PIPELINE_IID in Predefined environment variables.

The unique id of the current pipeline scoped to project

Upvotes: 1

Related Questions