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

Release resource not running when a build step fails

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Given a build using Exclusion plugin and the following the build steps defined:
      -Critical block start
      -My build steps. In my example I'm using Trigger plugin to trigger others jobs.
      -Critical block end

      When one of the build steps fails, critical block end is not being executed and the resource still locked.

      An another attempt was trying to remove Critical block end, since plugin's documentation says if there's no Critical block end, the resource release will always be executed. I tried without success.

        Attachments

          Activity

          Hide
          magjac Magnus Jacobsson added a comment - - edited

          I have the same problem. Or similar. I have a matrix job where the managed resource name is given through a variable ${TEST_NODE}, using the DynamicAxis plugin. It works fine as long as the job succeeds, but if it fails, the resource is still locked.

          Show
          magjac Magnus Jacobsson added a comment - - edited I have the same problem. Or similar. I have a matrix job where the managed resource name is given through a variable ${TEST_NODE}, using the DynamicAxis plugin. It works fine as long as the job succeeds, but if it fails, the resource is still locked.
          Hide
          anthonyroux Anthony Roux added a comment -

          Fixed in release 0.10.

          Show
          anthonyroux Anthony Roux added a comment - Fixed in release 0.10.

            People

            Assignee:
            anthonyroux Anthony Roux
            Reporter:
            henriquegontijo Henrique Gontijo
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: