From: Holger Levsen Date: Mon, 15 Oct 2012 10:49:07 +0000 (+0200) Subject: more logging X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=bf4d6741dc80481ab5bad1eb5a218223f7b911e3;p=profitbricks%2Fjenkins-build-scripts.git more logging --- diff --git a/add_liveboot_request.py b/add_liveboot_request.py index 2c1a721..556f8ac 100644 --- a/add_liveboot_request.py +++ b/add_liveboot_request.py @@ -131,6 +131,7 @@ def trigger_jenkins_build(request_id): "=BuildIt&REQUEST_ID=" + str(request_id) logger.info("Jenkins build trigger url: %s" % url) urllib2.urlopen(url).read() + return url def add_liveboot_request(deb_pkg_instance_ids): @@ -190,7 +191,8 @@ def add_liveboot_request(deb_pkg_instance_ids): request_id = insert_liveboot_request(con, jenkins_uid, def_pkg_list_id) con.commit() logger.info("New liveboot request created sucessfully") - trigger_jenkins_build(request_id) + url = trigger_jenkins_build(request_id) + logger.info("New liveboot triggered via %s" % url) else: logger.info("Package isn't in the default package_list, no liveboot"