[Buildbot-devel] Build only if a new tag arrived (using AnyBranchScheduler)

J. Félix Ontañón fontanon at emergya.es
Mon Mar 24 08:05:02 UTC 2008


Hi everyone !
The newbie trying to do hacky-crappy things with buildbot has back !

I have a subversion repository with a lot of apps. Every app has a
trunk/tags structure.

My objetive it's to make my buildbot able only to build if a new tag
it's commited.

An example:

myRepository/
 |--- app1/
 |	|-- trunk/
 |	|	|--- bunch of files and directories
 |	|-- tags/
 |		|--- 0.1/
 |			|--- bunch of files and directories
 |		|--- 0.2/
 |			|--- bunch of files and directories
 |--- app2/
	|-- trunk/
	|	|--- bunch of files and directories
	|-- tags/
		|--- 0.1a/
		|	|--- bunch of files and directories
		|--- 0.1b/
			|--- bunch of files and directories

 * If I commit any existing or new file, buildbot does nothing
 * If I commit the new app1/tags/0.3, buildbot only build app1/tags/0.3
 * If I commit the new app1/tags/0.3 and the new app2/tags/0.1c,
buildbot builds both branches.

I tried to use a SVNPoller with a good split_file function and
an AnyBranchScheduler, but it takes to build the whole tags/ at when the
buildbot.steps.source.SVN arrives.

So i tried to make my own buildbot.steps.source.SVN subclass that
append the last tag to the path to export.

Well ... doesn't work. So insted of lost myself in the "debugging-way"
i ask you: ¿It's there a better solution?

Thanks you all.




More information about the devel mailing list