Search in sources :

Example 1 with ArtifactoryGlobalConfig

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;
}
Also used : Server(org.jenkinsci.test.acceptance.plugins.artifactory.ArtifactoryGlobalConfig.Server) ArtifactoryGlobalConfig(org.jenkinsci.test.acceptance.plugins.artifactory.ArtifactoryGlobalConfig) JenkinsConfig(org.jenkinsci.test.acceptance.po.JenkinsConfig)

Aggregations

ArtifactoryGlobalConfig (org.jenkinsci.test.acceptance.plugins.artifactory.ArtifactoryGlobalConfig)1 Server (org.jenkinsci.test.acceptance.plugins.artifactory.ArtifactoryGlobalConfig.Server)1 JenkinsConfig (org.jenkinsci.test.acceptance.po.JenkinsConfig)1