My English is not very good, so if I choose something wrong, please ignore it, thanks.
Although I've learned to always use JenkinsFile as the authoritative source for parameter definitions, I've also learned to discard UI definitions on the first run.But my job is generated through API, my colleagues will fill in such as code repository address, publishing branch or tag on the web interface, I use Python-Jenkins to generate the job, this is my use scenario.As in the case of job, the parameter disappears after running.Many jobs use the same JenkinsFile, but the UI parameters are different for each job, which lets our colleagues know what they're doing.I was hoping that the first run wouldn't make the parameters in the UI part of config.xml disappear, so that my colleagues wouldn't bother me.
I spent several days trying to solve this problem, but I did not achieve the effect I wanted. My English is not very good, but I will try to communicate with you about this problem. I believe most of you are frustrated by this problem.