txml parsing looks unnecessary - devuan-releasebot - devuan's releasebot reimplemented (scorsh version) HTML git clone git://parazyd.org/devuan-releasebot.git DIR Log DIR Files DIR Refs DIR LICENSE --- DIR commit 0f613602dbbe225eb9f38602df2d60dddd393867 DIR parent b29b825084dba76f4c0239198297f496dec74de9 HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 24 Jul 2017 17:38:10 +0200 xml parsing looks unnecessary Diffstat: M build.py | 8 -------- 1 file changed, 0 insertions(+), 8 deletions(-) --- DIR diff --git a/build.py b/build.py t@@ -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, t@@ -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