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

CMake plugin leaks file handle on CMakeCache.txt

    XMLWordPrintable

    Details

    • Similar Issues:

      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

          simonrichter Simon Richter created issue -
          simonrichter Simon Richter made changes -
          Field Original Value New Value
          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
          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
          simonrichter Simon Richter made changes -
          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
          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
          simonrichter Simon Richter made changes -
          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
          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:
          {code:java}
          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{code}
          simonrichter Simon Richter made changes -
          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:
          {code:java}
          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{code}
          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:
          {code:java}
          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{code}
          15knots Martin Weber made changes -
          Assignee Martin Weber [ 15knots ]
          15knots Martin Weber made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          15knots Martin Weber made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          15knots Martin Weber made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              Created:
              Updated:
              Resolved: