Identifying job command

I am running some pipeline jobs using scripts. They are picking some files from repository and starting them as jobs. Each job can be mapped one-to-one to file in repository. Till now, there was no limit for job name. Now there is a limit to 255 characters for job name. Till now using full path of file as job name was fine. From now it would be a problem.

Is there any nice way how to keep one-to-one mapping for jobs to files?

My approach was to try to get command of job to get full filename executed. No luck. Same problem for identifying job using some custom generated variable. I am not able to get job variables using gitlab api.

  • I am using self-managed gitlab. Version 14.7