[CMake] [EXTERNAL] Re: Get ctest -S script to pull from git branch other than 'master'?

Bill Hoffman bill.hoffman at kitware.com
Wed Jun 8 13:27:55 EDT 2016


On 6/8/2016 12:59 PM, Bartlett, Roscoe A wrote:
> Xavier,
>
>
>
> Thanks for the info.  I got another email from Brad King and he also
> pointed out the same thing:
>
>
>
>
> https://cmake.org/cmake/help/v3.6/command/ctest_start.html#command:ctest_start
>
>
>
> and then Brad updated the documentation for ctest_update() to state that
> it will just keep you on whatever tracking branch you are on and do a
> git pull (after doing a reset --hard to wipe out any local changes).
>
>
>
> With is info, I can do what I need.
>
>
>
If you have something external like jenkins doing the build, you can 
also use:
https://cmake.org/cmake/help/latest/variable/CTEST_UPDATE_VERSION_ONLY.html?highlight=ctest_update_version_only

If set in the ctest script the ctest_update command will just get the 
hash and do nothing else.

-Bill



More information about the CMake mailing list