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

"Disable removed jobs" feature does not work with multibranch jobs

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • Jenkins 2.249.2
      Job-DSL-plugin 1.77

      When I use the "disable removed jobs" feature of the Job DSL plugin, it does not work with multibranch jobs. The job is correctly detected as an unreferenced item, but it is not disabled.

      seeder job log (missing Playground/SNo/DT2578-multibranch under Disabled items):

      07:38:10 Unreferenced items:

      07:38:10 GeneratedJob{name='Playground'}

      07:38:10 GeneratedJob{name='Playground/SNo'}

      07:38:10 GeneratedJob{name='Playground/SNo/DT2578-multibranch'}

      07:38:10 GeneratedJob{name='Playground/SNo/DT2578-pipelinejob'}

      07:38:10 Disabled items:

      07:38:10 GeneratedJob{name='Playground/SNo/DT2578-pipelinejob'}

          [JENKINS-64058] "Disable removed jobs" feature does not work with multibranch jobs

          Also looks like the problem is only for the option DISABLE, with the option DELETE working properly:

          Existing items:
              GeneratedJob{name='test-job'}
          Unreferenced items:
              GeneratedJob{name='test-delete-multibranch'}
          Removed items:
              GeneratedJob{name='test-delete-multibranch'} 

          Checked in Jenkins 2.375.3 and plugin version 1.81.

          Mateusz Janczuk added a comment - Also looks like the problem is only for the option DISABLE , with the option DELETE working properly: Existing items:     GeneratedJob{name= 'test-job' } Unreferenced items:     GeneratedJob{name= 'test-delete-multibranch' } Removed items:     GeneratedJob{name= 'test-delete-multibranch' } Checked in Jenkins 2.375.3 and plugin version 1.81.

            Unassigned Unassigned
            svennoack Sven Noack
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: