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

JobDSL Plugin can produce never ending jobs (resource leak)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • job-dsl-plugin
    • None

      It is possible to create a job which will never end by configuring a job like:

      job {
      	name "Test"
      	configure { root ->
      	     // Please note I forgot to start with "root"
      		(properties / 'hudson.plugins.disk__usage.DiskUsageProperty').@plugin="disk-usage@0.23"
      	}
      }
      

      I did obviously a mistake in the configuration block since I start with "properties" instead of "root". Neverless it would be good if in this case the job would just fail.

      JobDSL Plugin Version 1.22

          [JENKINS-22708] JobDSL Plugin can produce never ending jobs (resource leak)

          Daniel Kuffner created issue -
          Daniel Kuffner made changes -
          Description Original:
          It is possible to create a job which will never end by configuring a job like:

          {code}

          job {
          name "Test"
          configure { root ->
          // Please note I forgot to start with "root"
          properties / 'hudson.plugins.disk__usage.DiskUsageProperty').@plugin="disk-usage@0.23"
          }
          }
          {code}

          I did obviously a mistake in the configuration block since I start with "properties" instead of "root". Neverless it would be good if in this case the job would just fail.


          JobDSL Plugin Version 1.22

          New: It is possible to create a job which will never end by configuring a job like:

          {code}

          job {
          name "Test"
          configure { root ->
          // Please note I forgot to start with "root"
          properties / ('hudson.plugins.disk__usage.DiskUsageProperty').@plugin="disk-usage@0.23"
          }
          }
          {code}

          I did obviously a mistake in the configuration block since I start with "properties" instead of "root". Neverless it would be good if in this case the job would just fail.


          JobDSL Plugin Version 1.22

          Daniel Kuffner made changes -
          Description Original: It is possible to create a job which will never end by configuring a job like:

          {code}

          job {
          name "Test"
          configure { root ->
          // Please note I forgot to start with "root"
          properties / ('hudson.plugins.disk__usage.DiskUsageProperty').@plugin="disk-usage@0.23"
          }
          }
          {code}

          I did obviously a mistake in the configuration block since I start with "properties" instead of "root". Neverless it would be good if in this case the job would just fail.


          JobDSL Plugin Version 1.22

          New: It is possible to create a job which will never end by configuring a job like:

          {code}

          job {
          name "Test"
          configure { root ->
          // Please note I forgot to start with "root"
          (properties / 'hudson.plugins.disk__usage.DiskUsageProperty').@plugin="disk-usage@0.23"
          }
          }
          {code}

          I did obviously a mistake in the configuration block since I start with "properties" instead of "root". Neverless it would be good if in this case the job would just fail.


          JobDSL Plugin Version 1.22

          Daniel Spilker made changes -
          Assignee Original: Justin Ryan [ quidryan ] New: Daniel Spilker [ daspilker ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 154820 ] New: JNJira + In-Review [ 207638 ]

            daspilker Daniel Spilker
            dkuffner Daniel Kuffner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: