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

Reload configs of all jobs in folder

    Details

    • Similar Issues:

      Description

      If manual changes made to config.xml, hitting Jenkins > Manage >
      Reload Configuration from Disk does not seem to actually take jobs within the folder.

      Repro:
      1. Create folder
      2. Create job within folder
      3. Make changes by hand directly to Folder's config.xml
      4. Make changes by hand directly to Job's config.xml
      5. Reload config
      6. Folder has updates, but Job does not reflect changes.

        Attachments

          Activity

          brantone Brantone created issue -
          Hide
          jglick Jesse Glick added a comment -

          Are you sure this is reproducible? In which Jenkins version? It certainly should be reloading all jobs, everywhere, in any version I know about.

          Show
          jglick Jesse Glick added a comment - Are you sure this is reproducible? In which Jenkins version? It certainly should be reloading all jobs, everywhere, in any version I know about.
          jglick Jesse Glick made changes -
          Field Original Value New Value
          Labels folders
          Assignee Jesse Glick [ jglick ]
          Component/s core [ 15593 ]
          Component/s cloudbees-folder-plugin [ 18137 ]
          Hide
          danielbeck Daniel Beck added a comment -

          Loading of folder items is done by the Folders plugin.

          This report needs much more information to allow investigating further.

          Show
          danielbeck Daniel Beck added a comment - Loading of folder items is done by the Folders plugin. This report needs much more information to allow investigating further.
          danielbeck Daniel Beck made changes -
          Component/s cloudbees-folder-plugin [ 18137 ]
          Component/s core [ 15593 ]
          Hide
          jglick Jesse Glick added a comment -

          Loading of folder items is done by the Folders plugin.

          Yes, but in response to loading of the Folder itself, which should happen during a general Jenkins reload too.

          Show
          jglick Jesse Glick added a comment - Loading of folder items is done by the Folders plugin. Yes, but in response to loading of the Folder itself, which should happen during a general Jenkins reload too.
          jglick Jesse Glick made changes -
          Labels folders folders reload
          Hide
          brantone Brantone added a comment -

          Yeah, my bad, I was pretty sure I had selected the correct component for Cloudbees Folder
          Will add repro steps.

          Show
          brantone Brantone added a comment - Yeah, my bad, I was pretty sure I had selected the correct component for Cloudbees Folder Will add repro steps.
          brantone Brantone made changes -
          Description If manual changes made to config.xml, hitting Jenkins > Manage >
          Reload Configuration from Disk does not seem to actually take jobs within the folder.
          Actually ... that may be a Jenkins core issue, worth checking though.
          If manual changes made to config.xml, hitting Jenkins > Manage >
          Reload Configuration from Disk does not seem to actually take jobs within the folder.

          Repro:
          1. Create folder
          2. Create job within folder
          3. Make changes by hand directly to Folder's config.xml
          4. Make changes by hand directly to Job's config.xml
          5. Reload config
          6. Folder has updates, but Job does not reflect changes.
          Hide
          danielbeck Daniel Beck added a comment -

          Is step 3 necessary, or can it be skipped?

          Show
          danielbeck Daniel Beck added a comment - Is step 3 necessary, or can it be skipped?
          Hide
          vgramer Vincent Gramer added a comment -

          hello,

          I have the same issue with Jenkins 1.609.2 and CloodBees folder 4.9.0. Step 3 is not necessary, you can skip it. By the way if i restart the server hosting Jenkins, jobs reflect changes.

          thanks

          Show
          vgramer Vincent Gramer added a comment - hello, I have the same issue with Jenkins 1.609.2 and CloodBees folder 4.9.0. Step 3 is not necessary, you can skip it. By the way if i restart the server hosting Jenkins, jobs reflect changes. thanks
          Hide
          brantone Brantone added a comment -

          Correct, step 3 is not a requirement, was just the use case at the time.

          Show
          brantone Brantone added a comment - Correct, step 3 is not a requirement, was just the use case at the time.
          Hide
          dmsmidt Daniel Smidt added a comment -

          I can confirm this problem, restarting seems to be the only quick fix (which is a problem).

          Show
          dmsmidt Daniel Smidt added a comment - I can confirm this problem, restarting seems to be the only quick fix (which is a problem).
          Hide
          akihir Aki Hirvonen added a comment -

          We have the same issue with Jenkins 1.636 and CloudBees Folders Plugin 5.0. The Folders plugin is great, but loosing the reload possibility is a drawback.

          Show
          akihir Aki Hirvonen added a comment - We have the same issue with Jenkins 1.636 and CloudBees Folders Plugin 5.0. The Folders plugin is great, but loosing the reload possibility is a drawback.
          Hide
          jglick Jesse Glick added a comment -

          You know you can reload individual items rather than the whole Jenkins configuration, right? That is much safer.

          Show
          jglick Jesse Glick added a comment - You know you can reload individual items rather than the whole Jenkins configuration, right? That is much safer.
          Hide
          brantone Brantone added a comment -

          Pardon my ignorance, but .. how?
          Tried doing search and nothing came up.

          Show
          brantone Brantone added a comment - Pardon my ignorance, but .. how? Tried doing search and nothing came up.
          Hide
          danielbeck Daniel Beck added a comment -

          /job/foo/reload should work.

          Show
          danielbeck Daniel Beck added a comment - /job/foo/reload should work.
          Hide
          brantone Brantone added a comment -

          I tried that a few times (jenkins 1.642, folder plugin 5.1) with no luck, but then on "one more try" it did work. Go figure very odd.
          K, so for current ticket purpose, although unwieldy if lots of jobs, the direct POST to job /reload is a good workaround.
          Thank you kindly sir.

          Show
          brantone Brantone added a comment - I tried that a few times (jenkins 1.642, folder plugin 5.1) with no luck, but then on "one more try" it did work. Go figure very odd. K, so for current ticket purpose, although unwieldy if lots of jobs, the direct POST to job /reload is a good workaround. Thank you kindly sir.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 162645 ] JNJira + In-Review [ 181008 ]
          Hide
          jprotaskey Jon Protaskey added a comment -

          Seems to be still occurring in 2.73.2.  Any update on this?

          Show
          jprotaskey Jon Protaskey added a comment - Seems to be still occurring in 2.73.2.  Any update on this?
          Hide
          ymougenel ymougenel added a comment -

          I used groovy script to avoid this bug, however since the scritpler plugin has been removed, this issue is getting worse: there is no way to reload a job inside a folder.

          Repro:

          1/ Change manually a job configuration (ex: repo1/jobA/config.xml)

          2/ Reload configuration from disk

          -> The job configuration is not updated

          Show
          ymougenel ymougenel added a comment - I used groovy script to avoid this bug, however since the scritpler plugin has been removed, this issue is getting worse: there is no way to reload a job inside a folder. Repro: 1/ Change manually a job configuration (ex: repo1/jobA/config.xml) 2/ Reload configuration from disk -> The job configuration is not updated
          Hide
          stanley_quon Stanley Quon added a comment -

          Any update on reloading the job configuration when the jobs are inside a folder?  Reloading will not load "config.xml" changes for jobs that exist in a folder.

          Using:  Jenkins ver. 1.642.4.1 (CloudBees Jenkins Enterprise 15.11)

           

          Show
          stanley_quon Stanley Quon added a comment - Any update on reloading the job configuration when the jobs are inside a folder?  Reloading will not load "config.xml" changes for jobs that exist in a folder. Using:  Jenkins ver. 1.642.4.1 (CloudBees Jenkins Enterprise 15.11)  
          maxfields2000 Maxfield Stewart made changes -
          Comment [ Just to update, we hit this version with Jenkins 2.112 and Folders plugin 6.4, definitely does not reload jobs in folders of any kind. A full Jenkins shutdown/restart is requried. ]

            People

            • Assignee:
              Unassigned
              Reporter:
              brantone Brantone
            • Votes:
              8 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated: