Replies: 1 comment 5 replies
-
This is a Renderer, that will return list of files from changes (for default codebase "") from buildbot.plugins import util
from twisted.internet import defer
@util.renderer
@defer.inlineCallbacks
def r_files(props):
changes = (yield props.master.db.changes.getChangesForBuild(props.getBuild().buildid))
files = set()
for change in changes:
if change["codebase"] == "": # Presumably you want to filter by codebase
files.update(change["files"])
# You can return what you need here
return list(files) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to trigger a build using 'sendchange'. That command has a few options and then a list of files as arguments.
This list of files should then be used as part of a shellcommand.
I guess I should use Interpolate somehow, but I can't find the complete list of properties, only examples of how I would use util.Interpolate().
Yes, Interpolate works, I managed to get prop:buildername. :-)
But where do I get the property list and list of files?
Any help is welcome!
Beta Was this translation helpful? Give feedback.
All reactions