]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
more logging
authorHolger Levsen <holger@layer-acht.org>
Mon, 15 Oct 2012 10:49:07 +0000 (12:49 +0200)
committerHolger Levsen <holger@layer-acht.org>
Mon, 15 Oct 2012 10:49:07 +0000 (12:49 +0200)
add_liveboot_request.py

index 2c1a721117191b0e1fe771f1e2b78c12fdef90b7..556f8acf1e03555d0ab9c5e26d24f490f31bda8c 100644 (file)
@@ -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"