use of org.jenkinsci.test.acceptance.plugins.artifactory.ArtifactoryPublisher in project acceptance-test-harness by jenkinsci.
the class ArtifactoryPluginTest method maven_integration.
@Test
@WithPlugins("maven-plugin")
@Ignore
@Issue("JENKINS-66791")
public void maven_integration() {
installSomeMaven(jenkins);
final ArtifactoryContainer artifactory = artifactoryContainer.get();
waitForArtifactory(artifactory);
configureArtifactory(artifactory);
MavenModuleSet job = jenkins.jobs.create(MavenModuleSet.class);
job.configure();
job.copyDir(resource("/artifactory_plugin/multimodule/"));
job.goals.set("install");
job.options("-verbose");
ArtifactoryPublisher publisher = job.addPublisher(ArtifactoryPublisher.class);
publisher.refresh();
job.save();
Build build = job.startBuild().shouldSucceed();
String log = build.getConsole();
assertThat(log, containsString("Initializing Artifactory Build-Info Recording"));
assertThat(log, containsString("Deploying artifact"));
assertThat(log, containsRegexp("Deploying build (info|descriptor) to: " + artifactory.getURL() + "/api/build"));
}
Aggregations