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

Exclusion Plugin Resources set in jobs generated from DSL do not show up on the list of declared resources inside Exclusion control panel.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial

      Used DSL script:

      freeStyleJob('Example_Exclusion_job'){
        wrappers {
            exclusionResources('first', 'second')
        }
        steps {
            criticalBlock {
                shell('echo Hello World!')
            }
        }
      }
      

      When a job generated from the above DSL script gets created, the managed resources 'first' and 'second' do not show up on the list of declared resources inside the Exclusion panel (<JENKINS_URL>/administrationpanel/. However when you enter the configuration page of said generated job and just click the Save button(without making ANY changes), they will appear on the list(the xml config of a job gets modified).

      Please note that I do have in mind the "List declared resources" list, not "List of currently allocated resources". However the currently used resources always show up properly on the list of allocated resources, even if it was started right after creation (from DSL).

      I am attaching xml config of the job generated from DSL (generated.xml) and the one after clicking the 'Save' button.

        1. generated.xml
          1 kB
          Alan Matuszczak
        2. modified.xml
          2 kB
          Alan Matuszczak

            daspilker Daniel Spilker
            puratopadawan Alan Matuszczak
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: