Provide checkConfig(), to support buildbot 2.9.x.
Apparently, as of buildbot 2.9.x, [reporters need to provide their own checkConfig() implementation when a service has custom args not supplied to the superclass](https://github.com/buildbot/buildbot/pull/5571). If we don't do this, checkconfig will fail.
This commit is contained in:
parent
b17a60beff
commit
cd82223a81
|
@ -23,9 +23,12 @@ import re
|
|||
|
||||
class GiteaStatusPush(http.HttpStatusPushBase):
|
||||
name = "GiteaStatusPush"
|
||||
neededDetails = dict(wantProperties=True)
|
||||
ssh_url_match = re.compile(r"(ssh://)?[\w+\-\_]+@[\w\.\-\_]+:?(\d*/)?(?P<owner>[\w_\-\.]+)/(?P<repo_name>[\w_\-\.]+?)(\.git)?$")
|
||||
|
||||
def checkConfig(self, baseURL, token, startDescription=None, endDescription=None,
|
||||
context=None, verbose=False, wantProperties=True, **kwargs):
|
||||
super().checkConfig(wantProperties=wantProperties, **kwargs)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def reconfigService(self, baseURL, token,
|
||||
startDescription=None, endDescription=None,
|
||||
|
|
Loading…
Reference in New Issue
Block a user