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

CMake plugin leaks file handle on CMakeCache.txt

    XMLWordPrintable

Details

    Description

      I'm building a standard CMake project. During build, it complains about being unable to determine CMAKE_BUILD_TOOL (see JENKINS-29267), and the agent keeps the CMakeCache.txt file open, causing subsequent builds that attempt to clean the build directory to fail as the file is still in use:

      19:39:15 Cleaning build dir... C:\Jenkins\workspace\windows-triangle-msvc\build
      19:39:16 ERROR: remote file operation failed: C:\Jenkins\workspace\windows-triangle-msvc\build at hudson.remoting.Channel@e17d372:JNLP4-connect connection from kicad-build-win7/192.168.122.10:49438: java.io.IOException: Unable to delete 'C:\Jenkins\workspace\windows-triangle-msvc\build\CMakeCache.txt'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
      19:39:16 Build step 'CMake Build' marked build as failure

      Attachments

        Activity

          Code changed in jenkins
          User: 15knots
          Path:
          src/main/java/hudson/plugins/cmake/BuildToolEntryParser.java
          http://jenkins-ci.org/commit/cmakebuilder-plugin/859b3626990d3dda462cafcbb7b13ec8bd44afac
          Log:
          fix JENKINS-48102: CMake plugin leaks file handle on CMakeCache.txt

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: 15knots Path: src/main/java/hudson/plugins/cmake/BuildToolEntryParser.java http://jenkins-ci.org/commit/cmakebuilder-plugin/859b3626990d3dda462cafcbb7b13ec8bd44afac Log: fix JENKINS-48102 : CMake plugin leaks file handle on CMakeCache.txt
          15knots Martin Weber added a comment - - edited

          Simon, could you please try out the fix on windows? Or one of the watchers?

          The updated version is at https://ci.jenkins.io/job/Plugins/job/cmakebuilder-plugin/job/master/1/artifact/target/cmakebuilder.hpi

          I you verify it being fixed, I will release a new version.

          15knots Martin Weber added a comment - - edited Simon, could you please try out the fix on windows? Or one of the watchers? The updated version is at https://ci.jenkins.io/job/Plugins/job/cmakebuilder-plugin/job/master/1/artifact/target/cmakebuilder.hpi I you verify it being fixed, I will release a new version.

          People

            15knots Martin Weber
            simonrichter Simon Richter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: