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

cmake plugin install from archive paths are wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: cmakebuilder-plugin
    • Labels:
      None
    • Environment:
      docker jenkins/jenkins:lts
    • Similar Issues:

      Description

      When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

      I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.

      1. run jenkins/jenkins:lts, install common plugins plus Cmake
      2. on configureTools define cmake instance 'cmake-org':
        1. use install 'Extract .zip/.tar.gz'
        2. url of archive on cmake.org (https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip)
        3. Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
      3. create pipeline job:
      node('cmake&&win64'){
          bat 'type NUL 1>CMakeLists.txt' // "IOException workspace doesn't exist"
          def cmakeTool = tool 'cmake-org'
          echo "tool says ${cmakeTool}"
          cmake arguments: '-V', installation: 'cmake-org'
      }
      

       

      The paths are wrong:

      • The 'tool' step gives the dirname(cmake)
      • 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
      • dirname(cmake) is not added to PATH - not sure if this is expected

        Attachments

          Activity

          tlynchpin Tim Lynch created issue -
          tlynchpin Tim Lynch made changes -
          Field Original Value New Value
          Description When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake:
           ## use install 'Extract *.zip*/**.tar.gz'
           ## url of archive on cmake.org
           ## Subdirectory of extracted archive 'cmake-3.11.3-Linux-x86_64/bin'
           # create pipeline job:
          {code:java}
          node{{code}

           #
          When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org (https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip)
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt'
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          tlynchpin Tim Lynch made changes -
          Description When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org (https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip)
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt'
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "workspace is empty"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          tlynchpin Tim Lynch made changes -
          Description When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "workspace is empty"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "java.io.IOException workspace ENOENT"     def cmakeTool = tool 'cmake-org'     echo "tool says ${cmakeTool}"     cmake arguments: '-V', installation: 'cmake-org' }{code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          tlynchpin Tim Lynch made changes -
          Description When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "java.io.IOException workspace ENOENT"     def cmakeTool = tool 'cmake-org'     echo "tool says ${cmakeTool}"     cmake arguments: '-V', installation: 'cmake-org' }{code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "workspace is empty"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          tlynchpin Tim Lynch made changes -
          Description When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "workspace is empty"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "IOException workspace is empty"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          tlynchpin Tim Lynch made changes -
          Description When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "IOException workspace is empty"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "IOException workspace doesn't exist"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          tlynchpin Tim Lynch made changes -
          Description When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "IOException workspace doesn't exist"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
          When using a cmake that is installed from an archive, the paths for cmake/ctest/cpack are wrong.

          I am using a local build of cmake with the same file structure as the cmake.org archives - contains cmake-blah-version-os-arch/bin/cmake. To illustrate this problem, the example uses the cmake.org archive urls.
           # run jenkins/jenkins:lts, install common plugins plus Cmake
           # on configureTools define cmake instance 'cmake-org':
           ## use install 'Extract *.zip/*.tar.gz'
           ## url of archive on cmake.org ([https://cmake.org/files/v3.11/cmake-3.11.3-win64-x64.zip])
           ## Subdirectory of extracted archive 'cmake-3.11.3-win64-x64/bin'
           # create pipeline job:

          {code:java}
          node('cmake&&win64'){
              bat 'type NUL 1>CMakeLists.txt' // "IOException workspace doesn't exist"
              def cmakeTool = tool 'cmake-org'
              echo "tool says ${cmakeTool}"
              cmake arguments: '-V', installation: 'cmake-org'
          }
          {code}
           

          The paths are wrong:
           * The 'tool' step gives the dirname(cmake)
           * 'cmake' step tries to exec "<jenkinshome>/jenkins\tools\hudson.plugins.cmake.CmakeTool\cmake-org\cmake-3.11.3-win64-x64\cmake -V" - 'bin/' is missing
           * dirname(cmake) is not added to PATH - not sure if this is expected
          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 ]
          tlynchpin Tim Lynch made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            15knots Martin Weber
            Reporter:
            tlynchpin Tim Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: