<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I think that you are missing the point of "nightly" runs. The idea behind a nightly run is that each build-bot builds the SAME version of the code.<div>Just checking out the HEAD for every build would be submitting one "continuous" (perhaps it should be called "head") build. The version built is whatever happens to be the most current head at the time of the build.</div><div><br></div><div>So, if you just want "head" builds, don't submit them to two different dashboard areas. Or, if you truly want (and I suggest that it is a good idea) "nightly" builds, either run those builds on a separate bot (source tree) or assure that the continuous builds stop before the end of the logical day and do not resume until after the nightly build has been run.</div><div><br><div><div>On Jun 14, 2012, at 2:07 AM, NoRulez wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div>I think i fond the problem, but I don't know how to solve it.<br><br>I have the following defined in the CTestScript.cmake:<br><span style="font-size: 12px; font-family: courier new,monospace; color: rgb(130, 130, 130);">if(${NEED_REPOSITORY_CHECKOUT})</span><br><span style="font-size: 12px; font-family: courier new,monospace; color: rgb(130, 130, 130);"> set(CTEST_CHECKOUT_COMMAND "${CTEST_UPDATE_COMMAND} co ${REPOSITORY_URL} \"${CTEST_SOURCE_DIRECTORY}\" -r HEAD")</span><br><span style="font-size: 12px; font-family: courier new,monospace; color: rgb(130, 130, 130);">else()</span><br><span style="font-size: 12px; font-family: courier new,monospace; color: rgb(130, 130, 130);"> set(CTEST_CHECKOUT_COMMAND "${CTEST_UPDATE_COMMAND} update")</span><br><span style="font-size: 12px; font-family: courier new,monospace; color: rgb(130, 130, 130);">endif()</span><br><br>which seems to be correct, but in CDash the update command looks like:<br><b>Update Command: </b>"C:/Program Files/Subversion/bin/svn.exe" "update" "--non-interactive" "-r{2012-06-12 23:00:00 +0000}"<br><br>From the svn documentation:<br><span style="color: rgb(130, 130, 130); font-family: courier new,monospace; font-size: 12px;"> If no revision is given, bring working copy up-to-date with HEAD rev.</span><br><span style="color: rgb(130, 130, 130); font-family: courier new,monospace; font-size: 12px;"> Else synchronize working copy to revision given by -r.</span><br><br>So, how could I remove the last command line argument ("-r{2012-06-12 23:00:00 +0000}")?<br><br>Thanks in advance<br><br>Best Regards<br><br><br></div><div><br>Am 06. Jun 2012 um 23:31 schrieb Richard Wackerbarth <<a href="mailto:richard@NFSNet.org">richard@NFSNet.org</a>>:<br><br><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch">> NoRulez,<br> <br> A better question is "Why was revision 8 not included in the nightly run?"<br> Using one source tree for both continuous and nightly assumes that there will be no continuous runs between the last update incorporated in the nightly run and the time at which the nightly run is performed. It appears that you are not suspending continuous runs between the nightly epoch and the time that you perform the nightly run.<br> <br> By following Stefan's scheme of two complete trees, each tree meets the above criteria because the nightly version never does continuous runs and the continuous version never does nightly runs.<br> <br> On Jun 6, 2012, at 3:49 PM, Stefan Reuschl wrote:<br> <br> > Am 06.06.2012, 08:57 Uhr, schrieb NoRulez <<a href="mailto:norulez@me.com" data-mce-href="mailto:norulez@me.com">norulez@me.com</a>>:<br> > <br> >> Hello,<br> >> <br> >> here is the build process of the build server:<br> >> <br> >> 1.) e.g.: last commit at 03:00 pm (svn revision 8) => build is ok<br> >> 2.) The nightly build starts at 10:00 pm (svn revision 7) => build is ok<br> >> Why is the svn revision before the last commit, it should be 8?<br> >> 3.) In the morning (~ 06:00 am) a continuous build is triggered (SVN revision 8) => build is ok<br> >> Why is this continuous build triggered?<br> >> <br> >> The folder structure for the project on the build server is the following:<br> >> <br> >> MyProject<br> >> |<br> >> +----build<br> >> |<br> >> +----source<br> >> <br> >> In the CTestScript.cmake if have the following:<br> >> <br> >> if(MODEL STREQUAL "Nightly")<br> >> file(REMOVE_RECURSE "${CTEST_BINARY_DIRECTORY}")<br> >> set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)<br> >> endif()<br> >> <br> >> According to my understanding the build directory should be removed and newly created.<br> >> But I don't know why the revisions are changed during the nightly build.<br> > <br> > That's because the svn update for both Nightly and Continuous are done on<br> > the common source tree.<br> > The solution is to have independent source trees:<br> > <br> > MyProject<br> > |<br> > +----Continuous<br> > | |<br> > | +----build<br> > | |<br> > | +----source<br> > |<br> > +----Nightly<br> > | |<br> > | +----build<br> > | |<br> > | +----source<br> > <br> > Regards,<br> > Stefan<br> > --<br> > <br> > Powered by <a href="http://www.kitware.com/" data-mce-href="http://www.kitware.com">www.kitware.com</a><br> > <br> > Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" data-mce-href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br> > <br> > Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" data-mce-href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br> > <br> > Follow this link to subscribe/unsubscribe:<br> > <a href="http://www.cmake.org/mailman/listinfo/cmake" data-mce-href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br> <br> --<br> <br> Powered by <a href="http://www.kitware.com/" data-mce-href="http://www.kitware.com">www.kitware.com</a><br> <br> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" data-mce-href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br> <br> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" data-mce-href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br> <br> Follow this link to subscribe/unsubscribe:<br> <a href="http://www.cmake.org/mailman/listinfo/cmake" data-mce-href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><div style="width:0px; height:0px;"> </div></div></div></blockquote></div></div></div></blockquote></div><br></div></body></html>