|
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members
# code inspired/copied from contrib/github_buildbot # and inspired from code from the Chromium project # otherwise, Andrew Melo <andrew.melo@gmail.com> wrote the rest # but "the rest" is pretty minimal
""" Consumes a naive build notification (the default for now) basically, set POST variables to match commit object parameters: revision, revlink, comments, branch, who, files, links
files, links and properties will be de-json'd, the rest are interpreted as strings """
""" Small helper function to return the first value (if value is a list) or return the whole thing otherwise """ else:
# first, convert files, links and properties else:
else:
isdir=isdir, revision=revision, when=when, branch=branch, category=category, revlink=revlink, properties=properties, repository=repository, project=project)
|