use of org.jenkinsci.test.acceptance.plugins.artifactory.ArtifactoryGlobalConfig in project acceptance-test-harness by jenkinsci.
the class ArtifactoryPluginTest method configureArtifactory.
ArtifactoryGlobalConfig.Server configureArtifactory(ArtifactoryContainer artifactory) {
JenkinsConfig config = jenkins.getConfigPage();
config.configure();
ArtifactoryGlobalConfig global = new ArtifactoryGlobalConfig(config);
Server server = global.addServer();
server.id.set("artifactoryId");
server.url.set(artifactory.getURL());
server.username.set("admin");
server.password.set("password");
config.save();
return server;
}
Aggregations