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

"shelve project" button missing on some projects

      With the Shelve Plugin version 1.2, on many Jenkins versions, we have seen the "Shelve Project" button missing on some projects.

      We haven't been able to see any pattern. Most of our projects are matrix builds, and we've seen this issue on some matrix projects but not others.

      I don't know what to look for or what other info we might provide to help investigate this issue – ask for anything and I'll do my best to provide it.

          [JENKINS-10544] "shelve project" button missing on some projects

          Peter Pawlowski created issue -

          We dug through the log file (catalina.out) and didn't see anything interesting that might be relevant :/

          Peter Pawlowski added a comment - We dug through the log file (catalina.out) and didn't see anything interesting that might be relevant :/

          Well I just found our first clue!

          I noticed that the "shelve project" button does in fact appear, but it does so on the wrong page. It appears on each of the matrix platforms, instead of the project page.

          That is, it does not show up here:

          .../view/job/foo-product/

          but it does show up here:

          .../view/job/foo-product/label=windows-64.build/

          Peter Pawlowski added a comment - Well I just found our first clue! I noticed that the "shelve project" button does in fact appear, but it does so on the wrong page. It appears on each of the matrix platforms, instead of the project page. That is, it does not show up here: .../view/job/foo-product/ but it does show up here: .../view/job/foo-product/label=windows-64.build/

          Jenkins ver. 1.423, plugin ver. 1.3

          The same problem on our Jenkins installation: the 'Shelved Projects' link is not shown in some projects.

          The interesting thing happens when a new project created as copy of the project missing the 'Shelved Projects' link:
          on the first open Configure page the 'Shelved Projects' link is present, but it disappears on next page after 'Save' button is pressed.

          See attached config.xml as a sample of such problem project.

          Tetiana Tvardovska added a comment - Jenkins ver. 1.423, plugin ver. 1.3 The same problem on our Jenkins installation: the 'Shelved Projects' link is not shown in some projects. The interesting thing happens when a new project created as copy of the project missing the 'Shelved Projects' link: on the first open Configure page the 'Shelved Projects' link is present, but it disappears on next page after 'Save' button is pressed. See attached config.xml as a sample of such problem project.
          Tetiana Tvardovska made changes -
          Attachment New: config.xml [ 20696 ]

          I recently unshelved some projects.

          Now I'm done with them & want to pack them back up, but none of them has a Shelve Project link anymore

          G. Ann Campbell added a comment - I recently unshelved some projects. Now I'm done with them & want to pack them back up, but none of them has a Shelve Project link anymore

          A recent Jenkins restart restored the 'Shelve' buttons. So it appears that the piece that runs at startup also needs to be invoked @unshelve.

          I'm guessing that the 'shelve' action is removed onShelve. So the other option m.ight be to just not do that

          G. Ann Campbell added a comment - A recent Jenkins restart restored the 'Shelve' buttons. So it appears that the piece that runs at startup also needs to be invoked @unshelve. I'm guessing that the 'shelve' action is removed onShelve. So the other option m.ight be to just not do that

          mattyt added a comment -

          I have noticed a similar (same?) problem to that reported. Here are the specifics in case there's useful information:

          We're running Jenkins v1.442 and tried installing and running the shelve plugin (v1.3) without a restart. The "Shelve Project" link didn't appear on any of the job pages though "Shelved Projects" was visible on the main page.

          Restarting Jenkins fixed the issue; all jobs now have the "Shelve Project" option.

          mattyt added a comment - I have noticed a similar (same?) problem to that reported. Here are the specifics in case there's useful information: We're running Jenkins v1.442 and tried installing and running the shelve plugin (v1.3) without a restart. The "Shelve Project" link didn't appear on any of the job pages though "Shelved Projects" was visible on the main page. Restarting Jenkins fixed the issue; all jobs now have the "Shelve Project" option.

          star latch added a comment -

          Looks like when a job is created using "Copy existing job", the properties are not copied with it. The newly created job is missing this property which allows it to be shelved. I made following change in the job and restarted Jenkins and can now see the Shelve button. (I know the workaround sucks). Don't know if this is a defect in the plugin or core/create job functionality.

          — SNIP —
          <properties>
          <org.jvnet.hudson.plugins.shelveproject.ShelveProjectProperty/>
          </properties>
          — SNIP —

          star latch added a comment - Looks like when a job is created using "Copy existing job", the properties are not copied with it. The newly created job is missing this property which allows it to be shelved. I made following change in the job and restarted Jenkins and can now see the Shelve button. (I know the workaround sucks). Don't know if this is a defect in the plugin or core/create job functionality. — SNIP — <properties> <org.jvnet.hudson.plugins.shelveproject.ShelveProjectProperty/> </properties> — SNIP —

          Dmitry Zorin added a comment -

          It looks like the job configuration loses the ShelveProjectProperty while being saved by the user, i.e. by clicking the "Save" button. If the system changes the job configuration for its own needs the property becomes restored and the "Shelve project" link appears again... up to the next saving by user.

          BTW, does anybody work on this plugin yet?

          Dmitry Zorin added a comment - It looks like the job configuration loses the ShelveProjectProperty while being saved by the user, i.e. by clicking the "Save" button. If the system changes the job configuration for its own needs the property becomes restored and the "Shelve project" link appears again... up to the next saving by user. BTW, does anybody work on this plugin yet?

            pierrebtz Pierre Beitz
            peterp Peter Pawlowski
            Votes:
            15 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: