|
# 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 2011, Louis Opter <kalessin@kalessin.fr>
# Quite inspired from the github hook.
pass
author=r['author'], files=list(files), comments=r['message'], revision=r['revision'], when=r['timestamp'], # Let's hope Google add the branch one day: branch=r.get('branch', self._branch), revlink=r['url'], repository=self.repository, project=self.project ))
# Instantiate a Payload object: this will parse the body, get the # authentication code from the headers and remember the branch picked # up by the user (Google Code doesn't send on which branch the changes # were made)
raise GoogleCodeAuthFailed() else: log.msg("Missing secret_key in the Google Code WebHook options: " "cannot authenticate the request!")
(payload.revision_count,))
|