summaryrefslogtreecommitdiffstats
path: root/releases/scripts
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-03-25 09:27:45 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2018-03-25 09:27:45 -0700
commitcd38b0562f821c7dce87e4c11e716ef6d88e5ea7 (patch)
treedcf553036019f13c167fc1b86c16cdbf2a39384f /releases/scripts
parent6c74b8638d9374312c6b7607ea1dd0b9c26e346f (diff)
Fix Gerrit URL for Release Automation
Includes logging more warning to help debug when things fail. Change-Id: I25e9afc6b9f413d33368613291e718cf8ccd6335 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'releases/scripts')
-rw-r--r--releases/scripts/create_branch.py4
-rw-r--r--releases/scripts/defaults.cfg2
2 files changed, 4 insertions, 2 deletions
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/