<div dir="ltr">Hello. I thought I should update with what I've tried so far.<div>In my master.cfg i've added the following def get_change_list() method</div><div><br></div><div><br>from buildbot.plugins import *<br>from buildbot.plugins import steps, util<br><br>c = BuildmasterConfig = {}<br><br>####### WORKERS<br><br>c['workers'] = [worker.Worker("example-worker", "pass")]<br><br>c['protocols'] = {'pb': {'port': 9989}}<br><br>####### CHANGESOURCES<br><br>c['change_source'] = []<br>c['change_source'].append(changes.GitPoller(<br>        'git://<GIT URL>',<br>        workdir='gitpoller-workdir', branch='bugfix',<br>        pollInterval=300))<br><br>####### SCHEDULERS<br><br>c['schedulers'] = []<br>c['schedulers'].append(schedulers.SingleBranchScheduler(<br>                            name="all",<br>                            change_filter=util.ChangeFilter(branch='bugfix'),<br>                            treeStableTimer=None,<br>                            builderNames=["runtests"]))<br>c['schedulers'].append(schedulers.ForceScheduler(<br>                            name="force",<br>                            builderNames=["runtests"]))<br><br>####### BUILDERS<br><br>factory = util.BuildFactory()<br>factory.addStep(steps.Git(repourl='git://<GIT URL>', mode='incremental'))<br>factory.addStep(steps.ShellCommand(command=["trial", "hello"],<br>                                   env={"PYTHONPATH": "."}))<br><br>c['builders'] = []<br><br>                                  <br><br>f_simplebuild = util.BuildFactory()<br><br><br><b><font color="#ff0000">@defer.inlineCallbacks<br>def get_change_list()<br>yield self.master.data.updates.addChange(<br>                author='joe bloggs',<br>                committer='jack bloggs',<br>                revision='revision 101',<br>                files='file_a.txt',<br>                comments='here are the changes',<br>                when_timestamp=date.datime.now()<br>                branch='my_local_branch',<br>                category='no category info',<br>                project='my_local_project',<br>                repository='dev repo 1',<br>                src='Synergy')<br></font></b><br><br>#This will be the comman <br>c['builders'].append(<br>    util.BuilderConfig(name="runtests",<br>      workernames=["example-worker"],<br>      factory=f_simplebuild))<br><br>####### BUILDBOT SERVICES<br><br>c['services'] = []<br><br>####### PROJECT IDENTITY<br><br>c['title'] = "BUILD BOT"<br>c['titleURL'] = "<a href="https://buildbot.github.io/hello-world/">https://buildbot.github.io/hello-world/</a>"<br><br>c['buildbotURL'] = "<a href="http://localhost:8010/">http://localhost:8010/</a>"<br><br># minimalistic config to activate new web UI<br>c['www'] = dict(port=8010,<br>                plugins=dict(waterfall_view={}, console_view={}, grid_view={}))<br><br>####### DB URL<br><br>c['db'] = {<br>    'db_url' : "sqlite:///state.sqlite",<br>}<br></div><div><br></div><div>I got some of this from <a href="https://github.com/buildbot/buildbot/blob/7658c965b3bedb3e5532446e1352f62fe7c102ab/master/buildbot/changes/hgpoller.py#L1">hgPoller</a>. My question is how do I call def get_change_list() so that it can update the Changes for the specific build?</div><div>Any suggestions.</div><div>Am I going about this all wrong?</div><div>Please help</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 9, 2019 at 7:09 PM honas grael <<a href="mailto:honasgraeymael@gmail.com" target="_blank">honasgraeymael@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><dl><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><em>Hello</em></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><em>I am using an uncommon VCS, so not one of the popular ones like Git or Mercurial.</em></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><em>When I do a build I get a text file with all the changes in the baseline that I am building.</em></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><em>I want to use this list of changes to populate the Change tab</em></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><em><br></em></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><div><img src="cid:ii_k1jl12id0" alt="Screenshot from 2019-10-09 19:02:20.png" width="457" height="223"><br></div></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><div><br></div></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change"><div>To that end I want to use the <a href="https://docs.buildbot.net/latest/developer/rest.html?highlight=addchanges#change" target="_blank">addChange</a> api call for each entry in the file that I have, so I can have a list of changes for the buildrequest</div></dt><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px"><dl style="margin-bottom:15px"><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)"><font size="1"><code style="background-color:transparent;font-weight:bold">addChange</code>(<em>files=None</em>, <em>comments=None</em>, <em>author=None</em>, <em>revision=None</em>, <em>when_timestamp=None</em>, <em>branch=None</em>, <em>category=None</em>, <em>revlink=''</em>, <em>properties={}</em>, <em>repository=''</em>, <em>codebase=None</em>, <em>project=''</em>, <em>src=None</em>)</font><span style="font-size:15px"><a href="https://docs.buildbot.net/latest/developer/rest.html?highlight=addchanges#buildbot.data.changes.Change.addChange" title="Permalink to this definition" style="color:rgb(51,102,153)" target="_blank"></a></span></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)"><br></dt></dl></dd><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px"><dl style="margin-bottom:15px"><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)">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.</dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)"><br></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)">Do I need to add a util.renderer decorated function to my master.cfg?<br></dt></dl></dd><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px"><dl style="margin-bottom:15px"><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)">Can I use an external python file to add the changes to a specific build-request?</dt></dl></dd><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px"><dl style="margin-bottom:15px"><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)"><br></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)">Does anyone have an example of how I might make use of this API call?<br></dt><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)"><br></dt></dl></dd><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px"><dl style="margin-bottom:15px"><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)">I could really use the help.</dt></dl></dd><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px"><dl style="margin-bottom:15px"><dt id="gmail-m_-9009845496799483177gmail-m_-3440410490558042888m_-2293055828432336812gmail-buildbot.data.changes.Change.addChange" style="color:rgb(0,0,0);font-family:"Open Sans",sans-serif;background-color:rgb(246,246,246)">Thanks</dt></dl></dd><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px"><dl style="margin-bottom:15px"><dd style="margin-top:3px;margin-bottom:10px;margin-left:30px;color:rgb(0,0,0);font-family:"Open Sans",sans-serif;font-size:15px;background-color:rgb(246,246,246)"><dl style="margin-bottom:15px;display:flex"><br></dl></dd></dl></dd></dl></div>
</blockquote></div>