[users at bb.net] Get List of Changes for the Current Build

Jar Jarder suaveh at gmail.com
Mon Apr 22 07:34:10 UTC 2019


Good day,

I want to get the list of changes that are being processed in the current
build.

For the builder that I configured, it runs for around 2 hours, and
collapses the requests in that time frame to the next build. The builder is
triggered by a SingleBranchScheduler that queries perforce.

What I am trying to do is to gather the list of CLs into a property like:

@renderer
def get_cl_properties_from_changes(props):
    cl_list = yield [ change.revision for change in
props.build.allChanges() ]
    return {
        'cl_list': cl_list
    }

Which is referenced by a SetProperties() step. For some reason, the
function always only returns the latest changelist.

Does anyone know how to get this info?

Thanks,
Jar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20190422/30d3f225/attachment.html>


More information about the users mailing list