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

CmakeTool fails with no message when binaries are not available

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using a cmake tool with automatic installation of version (for example) 3.7.2, this fails on a 32-bit linux node without any message. The usage is in a Jenkinsfile like this:

      def cmake = tool name: 'cmake-3.7', type: 'hudson.plugins.cmake.CmakeTool'
      

      After some debugging I realized that the likely cause for this is that CMake binaries aren't built for 32-bit linux since version 3.7, so likely the url is not found (the above command works just fine if I select version 3.6 or older). However, it would be nice to get some diagnostic for this, preferably in the pipeline step console, but just anything at all in the node log or system log would also have been helpful.

        Attachments

          Activity

          Hide
          15knots Martin Weber added a comment -

          This plugin has not been made pipeline-compatible yet and has not been tested with pipeleine.

          When used in a freestyle project, it would complain in the build log when cmake is downloaded and if no version of cmake is known for the CPU-archictecture the node is running on:

          ERROR: Install from cmake.org [3.7.2]: No cmake download known for OS `Linux` and arch i386'
          

           When cmake is downloaded, it wiil print an message in  the build log:

          Install from cmake.org [cmake-3.7.2]: Unpacking [https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz] to <jenkins home>/tools/hudson.plugins.cmake.CmakeTool/3.7.2 on <node name>
          

          However, these messages should also appear in the build log of a pippeline project.

          If you force re-installation (by deleting the <jenkins home>/tools/hudson.plugins.cmake.CmakeTool/3.7.2 directory on your build node), do these messages show up in the log?
           

          Show
          15knots Martin Weber added a comment - This plugin has not been made pipeline-compatible yet and has not been tested with pipeleine. When used in a freestyle project, it would complain in the build log when cmake is downloaded and if no version of cmake is known for the CPU-archictecture the node is running on: ERROR: Install from cmake.org [3.7.2]: No cmake download known for OS `Linux` and arch i386'  When cmake is downloaded, it wiil print an message in  the build log: Install from cmake.org [cmake-3.7.2]: Unpacking [https: //cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz] to <jenkins home>/tools/hudson.plugins.cmake.CmakeTool/3.7.2 on <node name> However, these messages should also appear in the build log of a pippeline project. If you force re-installation (by deleting the <jenkins home>/tools/hudson.plugins.cmake.CmakeTool/3.7.2 directory on your build node), do these messages show up in the log?  

            People

            • Assignee:
              15knots Martin Weber
              Reporter:
              estyrke Emil Styrke
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: