Status: Closed (View Workflow)
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.
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
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
JENKINS-32657, JENKINS-30695: Added build step to invoke any tool of the
CMake suite with arbitrary arguments
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.