Skip to content

Commit

Permalink
Merge pull request #148 from jglick/bitbucket-JENKINS-62669
Browse files Browse the repository at this point in the history
[JENKINS-62669] Removing Bitbucket support
  • Loading branch information
jglick authored Oct 13, 2020
2 parents 649a0b2 + 32162e4 commit b663406
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 133 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ manner, polling will check if the upstream repository contains any new
changes, and use that as the triggering condition of the new build.
 This plugin is currently intended to support Mercurial 1.0 and later.

Viewers included are `bitbucket`, `fisheye`, `google-code`, `hgweb`,
`kiln`, and `rhodecode`.
Viewers are included for various hosted services.

### Push Notifications

Expand Down
81 changes: 0 additions & 81 deletions src/main/java/hudson/plugins/mercurial/browser/BitBucket.java

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/resources/index.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
This plugin integrates <a href="http://www.selenic.com/mercurial/">Mercurial SCM</a> with Jenkins.
It includes repository browsing support for <code>hg serve</code>/<code>hgweb</code>,
Google Code, Bitbucket, FishEye, KilnHG and RhodeCode. Features include guaranteed clean builds, named branch
as well as hosted services like Google Code. Features include guaranteed clean builds, named branch
support, module lists, Mercurial tool installation, and
automatic caching.
</div>
33 changes: 0 additions & 33 deletions src/test/java/hudson/plugins/mercurial/browser/BitBucketTest.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public class HgBrowserSelectionTest {
FreeStyleProject p = (FreeStyleProject) j.jenkins.getItem("foo");
MercurialSCM ms = (MercurialSCM) p.getScm();
final HgBrowser browser = ms.getBrowser();
assertEquals("wrong url", "http://bitbucket.org/", browser.getUrl().toString());
assertTrue("class:" + browser.getClass(), browser instanceof BitBucket);
j.assertEqualBeans(new BitBucket("http://bitbucket.org/"), browser, "url");
assertEquals("wrong url", "http://code.google.com/p/xxx/source/", browser.getUrl().toString());
assertTrue("class:" + browser.getClass(), browser instanceof GoogleCode);
j.assertEqualBeans(new GoogleCode("http://code.google.com/p/xxx/source/"), browser, "url");
}

@Issue("JENKINS-4514")
Expand All @@ -47,11 +47,11 @@ public class HgBrowserSelectionTest {
FreeStyleProject p = (FreeStyleProject) j.jenkins.getItem("foo");
MercurialSCM ms = (MercurialSCM) p.getScm();
final HgBrowser browser = ms.getBrowser();
assertEquals("wrong url", "http://bitbucket.org/", browser.getUrl().toString());
assertTrue("class:" + browser.getClass(), browser instanceof BitBucket);
j.assertEqualBeans(new BitBucket("http://bitbucket.org/"), browser, "url");
assertEquals("wrong url", "http://code.google.com/p/xxx/source/", browser.getUrl().toString());
assertTrue("class:" + browser.getClass(), browser instanceof GoogleCode);
j.assertEqualBeans(new GoogleCode("http://code.google.com/p/xxx/source/"), browser, "url");
final List<Descriptor<RepositoryBrowser<?>>> browserDescriptors = ms.getDescriptor().getBrowserDescriptors();
assertTrue("Could not find BitBucket in " + browserDescriptors, browserDescriptors.contains(browser.getDescriptor()));
assertTrue("Could not find GoogleCode in " + browserDescriptors, browserDescriptors.contains(browser.getDescriptor()));
}

@Issue("JENKINS-20186")
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit b663406

Please sign in to comment.