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

PROPFILE token does not properly close the property file

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The current implementation of the PROPFILE token does not explicitly close the property file after reading it. This can lead to the property file being held open by the JVM for extended periods, long beyond the duration of the build job. On my Windows 7 build slave, the file appears to be held open indefinitely, and while testing the bug I once even saw two separate file handles open against a single property file. The open file handles prevent the file from being manipulated (deleted, moved, etc.) in Windows.

      PropertyFromFileMacro.ReadProperty.call() should explicitly close the input file immediately after calling Properties.load().

        Attachments

          Activity

          rvaughn rvaughn created issue -
          slide_o_mix Alex Earl made changes -
          Field Original Value New Value
          Assignee Kohsuke Kawaguchi [ kohsuke ] Alex Earl [ slide_o_mix ]
          slide_o_mix Alex Earl made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 142241 ] JNJira + In-Review [ 190035 ]

            People

            Assignee:
            slide_o_mix Alex Earl
            Reporter:
            rvaughn rvaughn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: