use of io.jenkins.plugins.casc.misc.ConfiguredWithReadme in project configuration-as-code-plugin by jenkinsci.
the class WorkflowCpsGlobalLibTest method configure_global_library.
@Test
@ConfiguredWithReadme("workflow-cps-global-lib/README.md")
public void configure_global_library() {
assertEquals(1, GlobalLibraries.get().getLibraries().size());
final LibraryConfiguration library = GlobalLibraries.get().getLibraries().get(0);
assertEquals("awesome-lib", library.getName());
final SCMSourceRetriever retriever = (SCMSourceRetriever) library.getRetriever();
final GitSCMSource scm = (GitSCMSource) retriever.getScm();
assertEquals("https://github.com/jenkins-infra/pipeline-library.git", scm.getRemote());
}
Aggregations