[users at bb.net] Using Buildbot addChange

honas grael honasgraeymael at gmail.com
Wed Oct 9 18:09:53 UTC 2019


*Hello**I am using an uncommon VCS, so not one of the popular ones like Git
or Mercurial.**When I do a build I get a text file with all the changes in
the baseline that I am building.**I want to use this list of changes to
populate the Change tab*
[image: Screenshot from 2019-10-09 19:02:20.png]

To that end I want to use the addChange
<https://docs.buildbot.net/latest/developer/rest.html?highlight=addchanges#change>
api call for each entry in the file that I have, so I can have a list of
changes for the buildrequest
addChange(*files=None*, *comments=None*, *author=None*, *revision=None*,
*when_timestamp=None*, *branch=None*, *category=None*, *revlink=''*,
*properties={}*, *repository=''*, *codebase=None*, *project=''*, *src=None*)
<https://docs.buildbot.net/latest/developer/rest.html?highlight=addchanges#buildbot.data.changes.Change.addChange>
I am not clear how to call this method so that I can pass in the contents
of the file that my VCS gives me.
Do I need to add a util.renderer decorated function to my master.cfg?
Can I use an external python file to add the changes to a specific
build-request?
Does anyone have an example of how I might make use of this API call?

I could really use the help.Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20191009/aa9b60c0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2019-10-09 19:02:20.png
Type: image/png
Size: 39852 bytes
Desc: not available
URL: <http://lists.buildbot.net/pipermail/users/attachments/20191009/aa9b60c0/attachment.png>


More information about the users mailing list