Labels section can be ony filled with static string. Is there a way to use defined Jenkins environment variables instead ? Calling global variables in the Cloud Configuration form (Pod Template section precisely) may be a relevant feature for us.
Honestly, I did a lot of researches but did not find any similar request or answer on the same topic.
Do you think that such a feature is possible to implement ?
Basically, we would like to set a pod label value (from the UI) with one env. variable related to the job.
For exemple, I tried different syntaxes (env.JOB_NAME, $JOB_NAME, ${JOB_NAME},“${JOB_NAME}”, JOB_NAME, …) but weren’t interpreted during a build execution.
Therefore, I don’t think this possible, at least I don’t have a clue how to proceed.