• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      When pre-installing plugins that create built-in items, the setup wizard thinks it is an upgrade because of https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/install/InstallUtil.java#L187

      There should be a way force the setup wizard to run.

          [JENKINS-37438] Provide method to force the setup wizard to run

          Vincent Latombe created issue -
          Vincent Latombe made changes -
          Assignee New: Vincent Latombe [ vlatombe ]

          Jesse Glick added a comment -

          Can you explain what a “built-in item” is? Any example you can point to?

          Jesse Glick added a comment - Can you explain what a “built-in item” is? Any example you can point to?

          Vincent Latombe added a comment - - edited

          What I call a built-in item is an item that is created before or during initialization as part of initial provisioning.

          Before includes any item that is created in advance by any provisioning script before starting Jenkins: folder structure, utility jobs, etc.
          During initialization can include items created by groovy scripts in init.groovy.d, or by plugins on startup.

          Unfortunately I don't have any OSS example, only closed source.

          Vincent Latombe added a comment - - edited What I call a built-in item is an item that is created before or during initialization as part of initial provisioning. Before includes any item that is created in advance by any provisioning script before starting Jenkins: folder structure, utility jobs, etc. During initialization can include items created by groovy scripts in init.groovy.d, or by plugins on startup. Unfortunately I don't have any OSS example, only closed source.
          Vincent Latombe made changes -
          Remote Link New: This issue links to "PR #2508 (Web Link)" [ 14731 ]
          Keith Zantow made changes -
          Remote Link New: This issue links to "PR 2512 (Web Link)" [ 14739 ]
          Keith Zantow made changes -
          Summary Original: Allow to mark items as built-in to avoid the setup wizard from switching to upgrade mode. New: Provide method to force the setup wizard to run
          Keith Zantow made changes -
          Description Original: When pre-installing plugins that create built-in items, the setup wizard thinks it is an upgrade because of https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/install/InstallUtil.java#L187

          There should be a way to mark such items as built-ins.
          New: When pre-installing plugins that create built-in items, the setup wizard thinks it is an upgrade because of https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/install/InstallUtil.java#L187

          There should be a way force the setup wizard to run.
          Keith Zantow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Keith Zantow made changes -
          Assignee Original: Vincent Latombe [ vlatombe ] New: Keith Zantow [ kzantow ]

            kzantow Keith Zantow
            vlatombe Vincent Latombe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: