[users at bb.net] Get previous step build result
Roland van Laar
roland at micite.net
Wed Jul 13 12:36:54 UTC 2022
On 12-07-2022 11:13, Hugh Sorby wrote:
> I'm using Buildbot 3.5.0 and I would like to know if the previous step
> failed or succeeded.
> 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.
>
> Is it possible to do this with 3.5.0?
Hey,
sorry can't give you a dry cut answer. I do have a few pointers for when
we needed to fetch a previous build.
Have a look at: `getPreviousBuild` from:
https://github.com/buildbot/buildbot/blob/master/master/buildbot/reporters/utils.py
Over at scummvm we use a custom reporter which compares the current
build to the last one on master branch.
Here is our vendorized `getPreviousBuild`:
https://github.com/scummvm/scummvm-sites/blob/director-buildbot/director/vendor/reporter_utils.py
Note: we're on 2.8.4
Regards,
Roland
> Many thanks for any suggestions/pointers.
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20220713/f8403464/attachment.htm>
More information about the users
mailing list