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

TaskListenerDecorator's close method is not called

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      master branch workflow-job-2.33 SNAPSHOT, test case attached (diff file)

      close method is not called in the pipeline lifecycle, I would like to leverage the close method to release resources used in TaskListenerDecorator, any suggestions ?

        Attachments

          Issue Links

            Activity

            Hide
            fengxx Ted added a comment -

            Oleg Nenashev is the behavior expected?

            Show
            fengxx Ted added a comment - Oleg Nenashev is the behavior expected?
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Ted please ask Pipeline plugin maintainers. 

            Show
            oleg_nenashev Oleg Nenashev added a comment - Ted please ask Pipeline plugin maintainers. 
            Hide
            fengxx Ted added a comment -

            Sorry for the trouble.

            Seems TaskListenerDecorator was added via https://issues.jenkins-ci.org/browse/JENKINS-45693 , Jesse Glick would you mind taking a look?

            Show
            fengxx Ted added a comment - Sorry for the trouble. Seems TaskListenerDecorator was added via https://issues.jenkins-ci.org/browse/JENKINS-45693 , Jesse Glick would you mind taking a look?
            Hide
            jglick Jesse Glick added a comment -

            There is no guarantee close will be called on a decorated stream, particularly if it is remote. If you have something to release, find another way, such as a Callback.

            Show
            jglick Jesse Glick added a comment - There is no guarantee close will be called on a decorated stream, particularly if it is remote. If you have something to release, find another way, such as a Callback .

              People

              • Assignee:
                Unassigned
                Reporter:
                fengxx Ted
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: