[Buildbot-devel] Writing custom steps

Andrii Senkovych jolly_roger at itblog.org.ua
Mon Oct 28 17:04:26 UTC 2013


Hi,

I want to make several steps to support building arbitrary Debian
packages in Buildbot. I need to download/upload several files in a
single step, and one file (usually *.dsc or *.changes) contains the
information about the others. So in case of the download step I have
to:

1) parse *.changes file on master (using debian.deb822 python module)
to get the rest of the file names)
2) download all files in one go

However to make similar upload step and keep buildslave clean (and
dumb) I would need:

1) upload *.changes file on the master
2) parse it and get the rest of the filenames
3) upload the rest of the files

I have looked through the buildbot.steps.transfer module to get the
general Idea and found that multiple file uploads is done by streaming
tar data. But it seems I would need to terminate streaming after
downloading the first file and to resume it after I get the names of
other files. Or maybe it's better to just combine several FileUpload
commands in one?

Thanks,

-- 
Best regards, Andriy Senkovych




More information about the devel mailing list