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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: