[Buildbot-devel] Obtaining build start time from a step
Charles Lepple
clepple at gmail.com
Wed Nov 3 18:51:42 UTC 2010
On Nov 2, 2010, at 5:35 PM, "Dustin J. Mitchell" <dustin at v.igoro.us> wrote:
> On Mon, Nov 1, 2010 at 4:14 PM, Charles Lepple <clepple at gmail.com> wrote:
>> Is it possible to get the start time of a build from inside of a step? I'm a little lost-- seems like it should be there somewhere since it is shown on the build status page, but I don't know how to find an instance of IBuildStatus on a running build (or something equivalent).
>
> On the master side, you can navigate to the build object, and then its
> status is in the .build_status or .status attribute (I don't recall
> which).
Thanks for the pointer. In a method of the BuildStep, I was able to use self.build.build_status.getTimes()[0] passed to time.asctime(time.localtime()).
Regards,
- Charles
More information about the devel
mailing list