]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fixup! fixed jenkins liveboot build trigger
authorFabian Holler <fabian.holler@profitbricks.com>
Mon, 15 Oct 2012 10:20:07 +0000 (12:20 +0200)
committerHolger Levsen <holger@layer-acht.org>
Mon, 15 Oct 2012 10:21:41 +0000 (12:21 +0200)
add_liveboot_request.py

index 6c39868e3804a6e98636991d42cd1dccc86bc6de..57debfbf81d15e3871eb152fc1e2b3dfb1de9dc2 100644 (file)
@@ -127,10 +127,10 @@ def insert_liveboot_request(con, owner_uid, package_list_id):
 
 
 def trigger_jenkins_build(request_id):
-    url = "http://jenkins/view/_Tests/job/liveboot/buildWithParameters?token"
-    "=BuildIt&REQUEST_ID=" + str(request_id)
+    url = "http://jenkins/view/_Tests/job/liveboot/buildWithParameters?token"\
+        "=BuildIt&REQUEST_ID=" + str(request_id)
+    logger.info("Jenkins build trigger url: %s" % url)
     urllib2.urlopen(url).read()
-    logger.info("Jenkins build triggered (%s)" % url)
 
 
 def add_liveboot_request(deb_pkg_instance_ids):