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

Jobs for deleted branches are no longer pruned

    Details

    • Similar Issues:

      Description

      This is the third regression we found after upgrading the "Pipeline: Multibranch" plugin from 2.9.2 to 2.14

      In version 2.9.2, jobs got automatically deleted once the remote branch got deleted and thus disappear from the branch list.

      Since version 2.14 those jobs are not deleted but rather changed to "disabled" and stay on the branch list.

      We would like the have the option to configure the original behavior. We did not find any such option on the configuration page.

        Attachments

          Activity

          Hide
          cschwarz Christoph Schwarz added a comment -

          Just figured out that there is a way to have deleted branches removed.

          In the configuration under "Orphaned Item Strategy" click "Discard old items" (the term items in this context refers to branches). Then enter "Days to keep old items" or "Max # of old items to keep". "Days to keep old items" with value 1 worked for us.

          That being said, this configuration item lacks documentation and that was the case why we did not understand how to use it.

          Show
          cschwarz Christoph Schwarz added a comment - Just figured out that there is a way to have deleted branches removed. In the configuration under "Orphaned Item Strategy" click "Discard old items" (the term items in this context refers to branches). Then enter "Days to keep old items" or "Max # of old items to keep". "Days to keep old items" with value 1 worked for us. That being said, this configuration item lacks documentation and that was the case why we did not understand how to use it.

            People

            • Assignee:
              mjdetullio Matthew DeTullio
              Reporter:
              cschwarz Christoph Schwarz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: