Fix Gerrit URL for Release Automation 51/54451/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Sun, 25 Mar 2018 16:27:45 +0000 (09:27 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Sun, 25 Mar 2018 16:27:45 +0000 (09:27 -0700)
Includes logging more warning to help debug when things fail.

Change-Id: I25e9afc6b9f413d33368613291e718cf8ccd6335
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
releases/scripts/create_branch.py
releases/scripts/defaults.cfg

index 362aaaf..fa3c92d 100644 (file)
@@ -65,8 +65,9 @@ def create_branch(api, arguments):
         logger.debug("Commit exists: %(commit)s", arguments)
     except RequestException as err:
         if hasattr(err, 'response') and err.response.status_code in [404]:
-            logger.warn("Commit %(commit)s for %(project)s:%(branch)s does"
+            logger.warn("Commit %(commit)s for %(project)s does"
                         " not exist. Not creating branch.", arguments)
+            logger.warn(err)
         else:
             logger.error("Error: %s", str(err))
         # Skip trying to create the branch
@@ -82,6 +83,7 @@ def create_branch(api, arguments):
         if hasattr(err, 'response') and err.response.status_code in [412, 409]:
             logger.info("Branch %(branch)s already created for %(project)s",
                         arguments)
+            logger.info(err)
         else:
             logger.error("Error: %s", str(err))
 
index 47bf091..6bc8765 100644 (file)
@@ -1,2 +1,2 @@
 [gerrit]
-url=https://gerrit.opnfv.org/
+url=https://gerrit.opnfv.org/gerrit/