XMLWordPrintable

Details

    Description

      The cmakebuilder plugin allows to add "CMake Build" as a build step, but there is no step calling CTest. It would be great to have this option.

      Attachments

        Activity

          15knots Martin Weber added a comment -

          Users can easily add a build step which invokes the test target.
          It is also easy to add an `Execute Shell` build step to invoke ctest directly.

          15knots Martin Weber added a comment - Users can easily add a build step which invokes the test target. It is also easy to add an `Execute Shell` build step to invoke ctest directly.

          I do not agree about the "easily" part : the ctest program is not necessary in the path, and the path to ctest/cmake is not always know either, especially in the case were jenkins installs cmake automatically.

          if cmake is installed by https://wiki.jenkins-ci.org/display/JENKINS/Global+Configuration how would one find out the path to cmake executable ? I could not find it in the environment variables of the build

          ericlemanissier Eric Lemanissier added a comment - I do not agree about the "easily" part : the ctest program is not necessary in the path, and the path to ctest/cmake is not always know either, especially in the case were jenkins installs cmake automatically. if cmake is installed by https://wiki.jenkins-ci.org/display/JENKINS/Global+Configuration how would one find out the path to cmake executable ? I could not find it in the environment variables of the build
          15knots Martin Weber added a comment -

          If cmake is downloaded and installed, the plugin add its location to $PATH. That is not mentionend in the documentation, but you can prove that yourself.

          15knots Martin Weber added a comment - If cmake is downloaded and installed, the plugin add its location to $PATH . That is not mentionend in the documentation, but you can prove that yourself.

          Code changed in jenkins
          User: 15knots
          Path:
          src/main/java/hudson/plugins/cmake/CToolBuilder.java
          src/main/resources/hudson/plugins/cmake/CToolBuilder/config.jelly
          src/main/resources/hudson/plugins/cmake/CToolBuilder/help-arguments.html
          src/main/resources/hudson/plugins/cmake/CToolBuilder/help-workingDir.html
          src/main/resources/hudson/plugins/cmake/CToolBuilder/help.html
          src/test/java/hudson/plugins/cmake/CmakeBuilderBuildTest.java
          http://jenkins-ci.org/commit/cmakebuilder-plugin/5a0d98854fa41c24306fcfa74fd7ef69c09827f1
          Log:
          JENKINS-32657, JENKINS-30695: Added build step to invoke any tool of the
          CMake suite with arbitrary arguments

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: 15knots Path: src/main/java/hudson/plugins/cmake/CToolBuilder.java src/main/resources/hudson/plugins/cmake/CToolBuilder/config.jelly src/main/resources/hudson/plugins/cmake/CToolBuilder/help-arguments.html src/main/resources/hudson/plugins/cmake/CToolBuilder/help-workingDir.html src/main/resources/hudson/plugins/cmake/CToolBuilder/help.html src/test/java/hudson/plugins/cmake/CmakeBuilderBuildTest.java http://jenkins-ci.org/commit/cmakebuilder-plugin/5a0d98854fa41c24306fcfa74fd7ef69c09827f1 Log: JENKINS-32657 , JENKINS-30695 : Added build step to invoke any tool of the CMake suite with arbitrary arguments

          People

            Unassigned Unassigned
            ericlemanissier Eric Lemanissier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: