use of hudson.plugins.git.browser.AssemblaWeb in project configuration-as-code-plugin by jenkinsci.
the class GitTest method checkAssemblaWebIsLoaded.
@Test
@Issue("JENKINS-57604")
@ConfiguredWithCode("GitTest.yml")
public void checkAssemblaWebIsLoaded() {
final Jenkins jenkins = Jenkins.get();
final GlobalLibraries libs = jenkins.getExtensionList(GlobalConfiguration.class).get(GlobalLibraries.class);
LibraryConfiguration lib = libs.getLibraries().get(0);
SCMRetriever retriever = (SCMRetriever) lib.getRetriever();
GitSCM scm = (GitSCM) retriever.getScm();
AssemblaWeb browser = (AssemblaWeb) scm.getBrowser();
assertEquals("assembla.acmecorp.com", browser.getRepoUrl());
}
Aggregations