[users at bb.net] buildbot sendchange: FILENAMES argument: how is it used?

Charles Lepple clepple at gmail.com
Fri Jun 2 02:20:15 UTC 2017


On Jun 1, 2017, at 8:33 PM, Linus Arver wrote:
> 
> Hello all,
> 
> The usage for `buildbot sendchange' command is:
> 
>    buildbot sendchange --master {MASTERHOST}:{PORT} --auth {USER}:{PASS}
>            --who {USER} {FILENAMES..}
> 
> The current docs [1] (and also docs going back to Buildbot 0.8.1 [2])
> about the `sendchange' command makes no mention of the FILENAMES
> argument, or how it is used. Can someone point me in the right
> direction?

I'm extrapolating a bit (having mostly used pollers and the GitHub hook listener), but sendchange is constructing a Change object, such as the one shown here:

http://buildbot.buildbot.net/changes/17193 <http://buildbot.buildbot.net/changes/17193>

Note the list of changed files at the end.

https://github.com/buildbot/buildbot/blob/eight/master/buildbot/scripts/runner.py#L291 <https://github.com/buildbot/buildbot/blob/eight/master/buildbot/scripts/runner.py#L291>

https://github.com/buildbot/buildbot/blob/master/master/buildbot/scripts/runner.py#L225 <https://github.com/buildbot/buildbot/blob/master/master/buildbot/scripts/runner.py#L225>

The svnpoller script has an example of this:

https://github.com/buildbot/buildbot/blob/eight/master/contrib/svnpoller.py#L83 <https://github.com/buildbot/buildbot/blob/eight/master/contrib/svnpoller.py#L83>

If your source control system makes it difficult or expensive to get a list of changed files, you might be able to get away with a dummy filename (since your Source step will most likely be checking things out based on the revision identifier), but then scheduler features like fileIsImportant won't work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170601/4f12a100/attachment.html>


More information about the users mailing list