Is it possible to reset CI_JOB_ID to some value in GitLab-CI?

We switched to a new gitlab server and CI_JOB_ID starts from 1 here. But we are using CI_JOB_ID as the build number and we want it to start with the last build number (which was on the old gitlab server). Is it possible to reset the CI_JOB_ID to some value?

Or maybe there is a better way to generate the build number?

+3


source to share





All Articles