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

TaskListenerDecorator's close method is not called

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • workflow-job-plugin
    • None

      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 ?

          [JENKINS-57586] TaskListenerDecorator's close method is not called

          Ted Xiao added a comment -

          oleg_nenashev is the behavior expected?

          Ted Xiao added a comment - oleg_nenashev is the behavior expected?

          Oleg Nenashev added a comment -

          fengxx please ask Pipeline plugin maintainers. 

          Oleg Nenashev added a comment - fengxx please ask Pipeline plugin maintainers. 

          Ted Xiao added a comment -

          Sorry for the trouble.

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

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

          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.

          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 .

            Unassigned Unassigned
            fengxx Ted Xiao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: