Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66385

How to run JenkinsFile without defining parameters and without deleting UI-defined parameters on the first run?

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • pipeline
    • None
    • Jenkins 2.263.1

      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.

            abayer Andrew Bayer
            lucius_chen lucius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: