<div dir="ltr"><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><blockquote type="cite"><div><p class="MsoNormal" style="margin-bottom:12pt">On Sep 27, 2016, at 6:12 PM, Foucar, James G <<a href="mailto:jgfouca@sandia.gov" target="_blank">jgfouca@sandia.gov</a>> wrote:</p></div><blockquote style="margin-top:5pt;margin-bottom:5pt"><p class="MsoNormal"><span style="font-size:11pt">I'd really like to post the sha1 of the commit that was tested for an individual cdash build. I'd like to display it prominently once the build is clicked. For example, if you look here</span><u></u><u></u></p><p class="MsoNormal"><a href="http://my.cdash.org/buildSummary.php?buildid=1056548" target="_blank"><span style="font-size:11pt;color:rgb(11,76,180)">http://my.cdash.org/buildSumma<wbr>ry.php?buildid=1056548</span></a><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt">You'll see a number of fields that are not particularly useful to us like OS Name and OS Version. I'd like to replace or hijack one of those fields to instead display the commit id that was tested. How might I go about doing this?</span></p></blockquote></blockquote></div></blockquote></div><div><br></div><div><br></div><div>Hi Jim,</div><div><br></div><div>This is a good idea, but I'm not sure of a way you could affect this change as a user of CDash.</div></div><div><br></div><div>This isn't quite as good, but you could link to a specific commit in your online repository viewer from your build (assuming such a thing exists).  To do this, create a file ending in .url whose contents is the URL that you'd like to associate with your build.  Then in your CTest driver script, do:<br></div><div><br></div><div><font face="monospace, monospace"><span>ctest_upload</span><span>(FILES </span><span>"/path/to/my</span><span>.url"</span><span>)</span></font></div><div><span><br></span></div><div><span>...before calling <font face="monospace, monospace">ctest_submit()</font><font face="arial, helvetica, sans-serif">.</font></span></div><div>You can see an example of this in action here:</div><div><a href="https://open.cdash.org/index.php?project=CDash&date=2016-09-28" target="_blank">https://open.cdash.org/index.<wbr>php?project=CDash&date=2016-<wbr>09-28</a><br></div><div>click on the yellow brick Icon for the "link_to_github" build.</div><div><br></div><div>Generally speaking, the information you seek is already in the CDash database (buildupdate.revision).  So it shouldn't be too much work to expose this value on buildSummary.php.  I'll look further into this when I get some time.</div><div><br></div><div><div>In the not too distant future, I plan on replacing the "Update" column on index.php with a "Version" column when possible (any revision control system more modern than CVS).  The idea being that seeing the version of the code that was built is more useful than seeing how many files changed.</div></div></div>