use of io.jenkins.blueocean.blueocean_bitbucket_pipeline.cloud.BitbucketCloudScmContentProvider in project blueocean-plugin by jenkinsci.
the class BitbucketServerScmContentProviderTest method checkScmProperties.
@Test
public void checkScmProperties() throws Exception {
// ensure server provider works with server multibranch pipeline
String credentialId = createCredential(BitbucketServerScm.ID, authenticatedUser);
MultiBranchProject mbp = mockMbp(credentialId);
ScmContentProvider provider = new BitbucketServerScmContentProvider();
assertTrue(provider.support(mbp));
assertEquals(provider.getScmId(), BitbucketServerScm.ID);
assertEquals(provider.getApiUrl(mbp), apiUrl);
// ensure cloud provider doesn't work with server multibranch pipeline
provider = new BitbucketCloudScmContentProvider();
assertFalse(provider.support(mbp));
}
Aggregations