From cd38b0562f821c7dce87e4c11e716ef6d88e5ea7 Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Sun, 25 Mar 2018 09:27:45 -0700 Subject: Fix Gerrit URL for Release Automation Includes logging more warning to help debug when things fail. Change-Id: I25e9afc6b9f413d33368613291e718cf8ccd6335 Signed-off-by: Trevor Bramwell --- releases/scripts/create_branch.py | 4 +++- releases/scripts/defaults.cfg | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'releases/scripts') diff --git a/releases/scripts/create_branch.py b/releases/scripts/create_branch.py index 362aaaf99..fa3c92def 100644 --- a/releases/scripts/create_branch.py +++ b/releases/scripts/create_branch.py @@ -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)) diff --git a/releases/scripts/defaults.cfg b/releases/scripts/defaults.cfg index 47bf09129..6bc876588 100644 --- a/releases/scripts/defaults.cfg +++ b/releases/scripts/defaults.cfg @@ -1,2 +1,2 @@ [gerrit] -url=https://gerrit.opnfv.org/ +url=https://gerrit.opnfv.org/gerrit/ -- cgit 1.2.3-korg