<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    On 12-07-2022 11:13, Hugh Sorby wrote:<br>
    <blockquote type="cite"
cite="mid:MEYPR01MB6840F15FDD6DFA5C1AFDB170C4869@MEYPR01MB6840.ausprd01.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
        I'm using Buildbot 3.5.0 and I would like to know if the
        previous step failed or succeeded.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
        I have tried to use the doStepIf method to figure out the
        previous steps status, but I haven't been able to make this
        work.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
        Is it possible to do this with 3.5.0?</div>
    </blockquote>
    <br>
    Hey, <br>
    <br>
    sorry can't give you a dry cut answer. I do have a few pointers for
    when we needed to fetch a previous build.<br>
    <br>
    Have a look at: `getPreviousBuild` from:<br>
<a class="moz-txt-link-freetext" href="https://github.com/buildbot/buildbot/blob/master/master/buildbot/reporters/utils.py">https://github.com/buildbot/buildbot/blob/master/master/buildbot/reporters/utils.py</a><br>
    <br>
    Over at scummvm we use a custom reporter which compares the current
    build to the last one on master branch.<br>
    <br>
    Here is our vendorized `getPreviousBuild`:<br>
<a class="moz-txt-link-freetext" href="https://github.com/scummvm/scummvm-sites/blob/director-buildbot/director/vendor/reporter_utils.py">https://github.com/scummvm/scummvm-sites/blob/director-buildbot/director/vendor/reporter_utils.py</a><br>
    <br>
    Note: we're on 2.8.4<br>
    <br>
    Regards,<br>
    <br>
    Roland<br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:MEYPR01MB6840F15FDD6DFA5C1AFDB170C4869@MEYPR01MB6840.ausprd01.prod.outlook.com">
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
        Many thanks for any suggestions/pointers.</div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@buildbot.net">users@buildbot.net</a>
<a class="moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users">https://lists.buildbot.net/mailman/listinfo/users</a></pre>
    </blockquote>
    <br>
  </body>
</html>