Reputation: 13688
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
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