[Buildbot-devel] receiving a sendchange message: getting the list of changed files
Amber Yust
ayust at yelp.com
Sun Jun 12 07:22:45 UTC 2011
You could always urlencode it and then have the other end expect a
urlencoded value. :)
~Amber
On Sat, Jun 11, 2011 at 8:31 PM, Matthew Morse <matt at apple.com> wrote:
> Thanks Amber--that worked.
>
> For anyone interested in the details, one builder now sends a message along
> the lines of:
>
> buildbot sendchange --master some.server.com:9977 --auth
> <name:pwd> --who <initiating builder> *--property samples_url:
> example.foo.com/%(buildername)s-%(buildnumber)d/some/path/ *dummyfile
> *
> *
> And the receiving builder has a build step along the lines of:
> *
> *
> smoke_test_step = shell.ShellCommand(
> description = "run smoke tests",
> descriptionDone=["Finished running","smoke
> tests"],
> command = ["someExecutable", "-f",
> "someScriptFile", "--", "landing_page_url", *WithProperties("%s",
> "samples_url")]*,
> workdir = "DesignSamples",
> haltOnFailure=True,
> )
>
> The only problem I had was that I couldn't specify the URL with an 'http:"
> scheme, since properties are specified as:
>
> key:value
>
> ...and
>
> samples_url:http://example.foo.com/...
>
> ...has two colons, which confused buildbot. Perhaps there's a way to escape
> the second colon, but I simply removed the scheme specification since the
> browser defaults to 'http:' which is OK for now.
>
> Thanks again,
> -- Matt
>
>
> On Jun 10, 2011, at 7:34 PM PDT, Amber Yust wrote:
>
> Use a property for that. (--property).
>
> ~Amber (sent from Droid, please forgive any typos!)
> On Jun 10, 2011 4:38 PM, "Matthew Morse" <matt at apple.com> wrote:
> > Hi,
> >
> > I have one builder that runs a bunch of steps that result in a product in
> an output directory. That builder then sends a sendchange message to another
> buildmaster to cause it to run tests on that output directory.
> >
> > Initially, the output directory had a well known name, but now it changes
> with each commit. So, I want to add that directory name information to the
> sendchange message and have the receiving buildmaster get the name from the
> message.
> >
> > So, the message (in a ShellCommand step) looks like:
> >
> > buildbot sendchange --master some.server.com:9977 --auth <name:pwd>
> --who <initiating builder> output_directory
> >
> > The output_directory path is sent in the message, but I don't (after much
> doc perusal and googling) understand how to get that directory information
> in the receiving buildmaster.
> >
> > Can anyone point me in the right direction?
> >
> > Thanks,
> > -- Matt
> >
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110612/147c94d8/attachment.html>
More information about the devel
mailing list