Make Jenkins a connector.

pull/1/head
Simon Quigley 5 years ago
parent 5f24aa7375
commit 838fc1d0ec

@ -33,10 +33,6 @@ rQTERMINALPACKAGING = qterminal
rLXQTCONFIGPACKAGING = lxqt-config rLXQTCONFIGPACKAGING = lxqt-config
rNMTRAYPACKAGING = nm-tray rNMTRAYPACKAGING = nm-tray
[jenkins]
site = https://ci.lubuntu.me
template_url = ssh://git@phab.lubuntu.me:2222/source/PACKAGE.git
[connector.irc] [connector.irc]
host = irc.freenode.net host = irc.freenode.net
port = 6697 port = 6697
@ -53,6 +49,10 @@ supported_versions =
Bionic Bionic
Xenial Xenial
Trusty Trusty
[connector.jenkins]
site = https://ci.lubuntu.me
template_url = ssh://git@phab.lubuntu.me:2222/source/package.git
``` ```
Features Features

@ -38,10 +38,6 @@ Temp - Example .lugitorc
rLXQTCONFIGPACKAGING = lxqt-config rLXQTCONFIGPACKAGING = lxqt-config
rNMTRAYPACKAGING = nm-tray rNMTRAYPACKAGING = nm-tray
[jenkins]
site = https://ci.lubuntu.me
template_url = ssh://git@phab.lubuntu.me:2222/source/PACKAGE.git
[connector.irc] [connector.irc]
host = irc.freenode.net host = irc.freenode.net
port = 6697 port = 6697
@ -59,6 +55,10 @@ Temp - Example .lugitorc
Xenial Xenial
Trusty Trusty
[connector.jenkins]
site = https://ci.lubuntu.me
template_url = ssh://git@phab.lubuntu.me:2222/source/PACKAGE.git
Features Features

@ -19,7 +19,7 @@ import requests
from string import Template from string import Template
class launchpad(object): class jenkins(object):
def __init__(self, log_level=logging.DEBUG): def __init__(self, log_level=logging.DEBUG):
@ -35,9 +35,10 @@ class launchpad(object):
) )
# Jenkins info # Jenkins info
self.jenkins_site = lugito.config.CONFIG['jenkins']['site'] self.jenkins_site = lugito.config.CONFIG['connectors']['jenkins']\
self.jenkins_trigger_url = lugito.config.CONFIG['jenkins']\ ['site']
['template_url'] self.jenkins_trigger_url = lugito.config.CONFIG['connectors']\
['jenkins']['template_url']
self.phab_host = lugito.config.CONFIG['phabricator']['host'].replace( self.phab_host = lugito.config.CONFIG['phabricator']['host'].replace(
'api/', '') 'api/', '')

Loading…
Cancel
Save