From 3046db96153d0dabe36a41fd171f2b5eba6a6028 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Fri, 24 Mar 2017 09:39:02 -0600 Subject: [PATCH] scm: handle "bitbucketweb" browser for mercurial The Git SCM uses "bitbucketweb". The Hg SCM also has "bitbucketweb" documented, but uses an un-documented value instead: "bitbucket". Make the Hg SCM support "bitbucketweb" so it aligns with the Git SCM and the Hg documentation. Continue to handle the old "bitbucket" browser, but add a comment that this is deprecated. Change-Id: If4266e35964b2d7c751cce009d195d4c1bcf845a --- jenkins_jobs/modules/scm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins_jobs/modules/scm.py b/jenkins_jobs/modules/scm.py index 19e8e02aa..d5dbe0c28 100644 --- a/jenkins_jobs/modules/scm.py +++ b/jenkins_jobs/modules/scm.py @@ -1092,7 +1092,8 @@ def hg(self, xml_parent, data): browser = data.get('browser', 'auto') browserdict = { 'auto': '', - 'bitbucket': 'BitBucket', + 'bitbucket': 'BitBucket', # deprecated + 'bitbucketweb': 'BitBucket', 'fisheye': 'FishEye', 'googlecode': 'GoogleCode', 'hgweb': 'HgWeb',