[Buildbot-devel] To FileUpload a build-time generated filename
J. Félix Ontañón
fontanon at emergya.es
Fri Apr 11 06:37:42 UTC 2008
El Thu, 10 Apr 2008 13:16:38 -0400
"Greg Ward" <gerg.ward+buildbot at gmail.com> escribió:
> On Mon, Apr 7, 2008 at 12:35 PM, J. Félix Ontañón
> <fontanon at emergya.es> wrote:
> > How can i upload a file whose filename it's generated at build
> > time?
>
> You definitely need the feature I implemented in ticket #115, which is
> in Buildbot 0.7.7. This allows the filename passed to
> FileUpload/FileDownload steps to be a WithProperties object. If
> you're using 0.7.6, the patch series attached to the ticket
> (http://buildbot.net/trac/ticket/115) should apply cleanly.
I'm on 0.7.7 and right, it works!!
The only problem is that the only way to know the filename it's to
parse the output from a previous ShellCommand.
How can i do setProperty() to set the filename parsed from a
ShellCommand output?
I'ts that the way?
Thanks Greg.
> Depending on what your filenames are generated from, you might also
> need the "custom build properties" feature in ticket #87
> (http://buildbot.net/trac/ticket/87). Unfortunately, that patch set
> is in a rather messy state at the moment. I suspect the best place to
> go is Dustin's darcs repository. Check other recent list posts for
> pointers.
>
> Greg
Wow, so messy, lot of patchs. Thanks anyway.
> >
> > I'm trying to apply buildbot to the building of a debian package.
> >
> > So, the last step must upload the .deb .dsc and .tar.gz files,
> > generated after launch "debuild -uc -us" step
> >
> > Those filenames are generated by "debuild" command by seeking
> > specific fields of debian/control and debian/changelog files.
> >
> > I'll try to explain it with a simplified example:
> >
> > f = factory.BuildFactory()
> > f.addStep(source.svn(svnurl="file:///var/svn/myapp/,
> > mode="export"))
> > appfactory.addStep(ShellCommand(command=["debuild","-uc","-us"]))
> > appfactory.addStep(FileUpload, workdir=".", slavesrc=MY_DEB_FILE,
> > masterdest="/tmp", mode=0644) appfactory.addStep(FileUpload,
> > workdir=".", slavesrc=MY_DSC_FILE, masterdest="/tmp", mode=0644)
> > appfactory.addStep(FileUpload, workdir=".", slavesrc=MY_TARGZ_FILE,
> > masterdest="/tmp", mode=0644)
> >
> > As you can see, the slavesrc param it's unknown until the debuild
> > step finish.
> >
> > It's there any way to get those filenames to pass them to
> > FileUpload? Maybe can I Subclass FileUpload to seek for the
> > filename in the slave workdir?
> >
> > Thanks.
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> > Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> > Monday, April 7! Use priority code J8TLD2.
> > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> > _______________________________________________
> > Buildbot-devel mailing list
> > Buildbot-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/buildbot-devel
> >
More information about the devel
mailing list