"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/reporters/gitlab.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

gitlab.py  (buildbot-3.0.2):gitlab.py  (buildbot-3.1.0)
skipping to change at line 32 skipping to change at line 32
from buildbot.process.properties import Properties from buildbot.process.properties import Properties
from buildbot.process.results import CANCELLED from buildbot.process.results import CANCELLED
from buildbot.process.results import EXCEPTION from buildbot.process.results import EXCEPTION
from buildbot.process.results import FAILURE from buildbot.process.results import FAILURE
from buildbot.process.results import RETRY from buildbot.process.results import RETRY
from buildbot.process.results import SKIPPED from buildbot.process.results import SKIPPED
from buildbot.process.results import SUCCESS from buildbot.process.results import SUCCESS
from buildbot.process.results import WARNINGS from buildbot.process.results import WARNINGS
from buildbot.reporters.base import ReporterBase from buildbot.reporters.base import ReporterBase
from buildbot.reporters.generators.build import BuildStartEndStatusGenerator from buildbot.reporters.generators.build import BuildStartEndStatusGenerator
from buildbot.reporters.generators.buildrequest import BuildRequestGenerator
from buildbot.reporters.message import MessageFormatterRenderable from buildbot.reporters.message import MessageFormatterRenderable
from buildbot.util import giturlparse from buildbot.util import giturlparse
from buildbot.util import httpclientservice from buildbot.util import httpclientservice
HOSTED_BASE_URL = 'https://gitlab.com' HOSTED_BASE_URL = 'https://gitlab.com'
class GitLabStatusPush(ReporterBase): class GitLabStatusPush(ReporterBase):
name = "GitLabStatusPush" name = "GitLabStatusPush"
def checkConfig(self, token, context=None, baseURL=None, verbose=False, def checkConfig(self, token, context=None, baseURL=None, verbose=False,
skipping to change at line 80 skipping to change at line 81
baseURL = baseURL[:-1] baseURL = baseURL[:-1]
self.baseURL = baseURL self.baseURL = baseURL
self._http = yield httpclientservice.HTTPClientService.getService( self._http = yield httpclientservice.HTTPClientService.getService(
self.master, baseURL, headers={'PRIVATE-TOKEN': token}, self.master, baseURL, headers={'PRIVATE-TOKEN': token},
debug=self.debug, verify=self.verify) debug=self.debug, verify=self.verify)
self.project_ids = {} self.project_ids = {}
def _create_default_generators(self): def _create_default_generators(self):
start_formatter = MessageFormatterRenderable('Build started.') start_formatter = MessageFormatterRenderable('Build started.')
end_formatter = MessageFormatterRenderable('Build done.') end_formatter = MessageFormatterRenderable('Build done.')
pending_formatter = MessageFormatterRenderable('Build pending.')
return [ return [
BuildRequestGenerator(formatter=pending_formatter),
BuildStartEndStatusGenerator(start_formatter=start_formatter, BuildStartEndStatusGenerator(start_formatter=start_formatter,
end_formatter=end_formatter) end_formatter=end_formatter)
] ]
def createStatus(self, def createStatus(self,
project_id, branch, sha, state, target_url=None, project_id, branch, sha, state, target_url=None,
description=None, context=None): description=None, context=None):
""" """
:param project_id: Project ID from GitLab :param project_id: Project ID from GitLab
:param branch: Branch name to create the status for. :param branch: Branch name to create the status for.
 End of changes. 3 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)