devuan-releasebot

devuan's releasebot reimplemented (scorsh version)
git clone git://parazyd.org/devuan-releasebot.git
Log | Files | Refs | LICENSE

commit 0f613602dbbe225eb9f38602df2d60dddd393867
parent b29b825084dba76f4c0239198297f496dec74de9
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 24 Jul 2017 17:38:10 +0200

xml parsing looks unnecessary

Diffstat:
Mbuild.py | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/build.py b/build.py @@ -8,7 +8,6 @@ Module to build Jenkins build jobs import sys from os import environ as env from os.path import basename -from xml.etree import ElementTree as ET import jenkins from config import (dryrun, buildgroups, jobtypes, suites, @@ -44,13 +43,6 @@ def main(): print('%s does not exist in Jenkins! Quitting.' % jobname) sys.exit(1) - # parse xml to find scm uri (line 274) - jobconfig = ET.fromstring(jenk.get_job_config(jobname)) - - jobrepo = "".join(jobconfig.find('scm').find('userRemoteConfigs') - .find('hudson.plugins.git.UserRemoteConfig') - .find('url').text.splitlines()) # dafuq!? - build_for = [] # looks unnecessary in releasebot (line 292) # perhaps we should just build everywhere we can? # discuss