<div dir="ltr"><div dir="ltr"><div dir="ltr">On Wed, Feb 20, 2019 at 2:54 PM Cristian Morales Vega <<a href="mailto:christian.morales.vega@gmail.com">christian.morales.vega@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">For the time being... my Jenkins actually does know when it has<br>
finished. If I could retrieve the CDash buildid when doing<br>
ctest_submit() I could store/show it somewhere. There is any way to do<br>
this?<br></blockquote><div><br></div><div>As of CMake 3.13, yes. CTest now provides enough information for CDash to initialize a buildid at submit time (rather than parse time). CDash includes this buildid in its XML response. It looks like the only way to see this from the command-line currently is to call ctest with the --debug argument. Here's an example:</div><div><br></div><div><div><cdash version="2.7.0"></div><div>  <status>OK</status></div><div>  <message></message></div><div>  <buildId>56</buildId></div><div>  <md5>663d1dbb340ef6166058d94b990107e2</md5></div><div></cdash></div></div><div><br></div><div>There's a potential complication here if the CDash instance you're submitting to is configured for asynchronous submissions (as most of our public CDash instances are). The concept here is that CDash can get busy at certain times of day. So instead of asking the testing clients to wait while CDash parses their XML files, the submissions get added to a queue that CDash works on offline. So just because your build has completed in Jenkins doesn't mean that CDash has parsed its results yet.</div></div></div></div>