Launchpad logo and name.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index ][Thread Index ]

Re: [Launchpad-users] PPA build tracking from python?



Hello,

On Tue, Oct 20, 2009 at 9:27 AM, Julian Edwards <julian.edwards@xxxxxxxxxxxxx> wrote:
On Tuesday 20 October 2009 05:39:27 Robert Collins wrote:
> Has anyone written a script to track whether a build succeeds/fails in a
> ppa?
>
> I'd like to be able to run
> bzr dailydeb <...>
> dput ppa:<...> *.changes
> track-build *.changes
>
> and have the last command error if the ppa build fails.
>
> This would be useful because I want to trigger builds of dependent
> packages but only if the lower layer builds successfully - and I need
> the package from the lower layer in my ppa to use it in my builds :)

Hi Rob

I've not heard of a script, but this should be pretty trivial with the API.
Cody and or the security guys may have done one, come to think of it.

I didn't have anything in particular for this but whipped up this for Robert after he pinged me on IRC. It uses launchpad API exclusively: http://pastebin.ubuntu.com/298016/

Example:

$ ./get-build-status oem-solutions-group/ppa moblin-image-creator
moblin-image-creator 0.44+repack-0ubuntu13netbook31 in jaunty: FULLYBUILT
moblin-image-creator 0.44+repack-0ubuntu13netbook31 in hardy: FULLYBUILT

Cheers,

--
Cody A.W. Somerville
Software Systems Release Engineer
Foundations Team
Custom Engineering Solutions Group
Canonical OEM Services
Phone: +1-781-850-2087
Cell: +1-506-471-8402
Email: cody.somerville@xxxxxxxxxxxxx


This is the launchpad-users mailing list archive — see also the general help for Launchpad.net mailing lists.

(Formatted by MHonArc.)