use of org.jenkinsci.test.acceptance.docker.fixtures.ArtifactoryContainer in project acceptance-test-harness by jenkinsci.
the class ArtifactoryPluginTest method check_config_is_persisted.
@Test
public void check_config_is_persisted() {
final ArtifactoryContainer artifactory = artifactoryContainer.get();
waitForArtifactory(artifactory);
ArtifactoryGlobalConfig.Server server = configureArtifactory(artifactory);
jenkins.configure();
server.testConnectionButton.click();
waitFor(hasContent("Found Artifactory"));
server.username.set("bob");
server.testConnectionButton.click();
waitFor(hasContent("Error occurred while requesting version information: Unauthorized"));
server.url.set("http://localhost:4898/blabla");
server.testConnectionButton.click();
waitFor(hasContent(Pattern.compile("Error occurred while requesting version information: Connection( to http://localhost:4898)* refused")));
}
use of org.jenkinsci.test.acceptance.docker.fixtures.ArtifactoryContainer 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"));
}
use of org.jenkinsci.test.acceptance.docker.fixtures.ArtifactoryContainer in project acceptance-test-harness by jenkinsci.
the class ArtifactoryPluginTest method gradle_integration.
@Test
@WithPlugins("gradle")
@Ignore
@Issue("JENKINS-39323")
public void gradle_integration() {
final ArtifactoryContainer artifactory = artifactoryContainer.get();
waitForArtifactory(artifactory);
configureArtifactory(artifactory);
GradleInstallation.installGradle(jenkins, "gradle 2.0", "2.0");
FreeStyleJob job = jenkins.jobs.create();
job.copyDir(resource("/artifactory_plugin/quickstart"));
ArtifactoryGradleConfiguratior gradleConfig = new ArtifactoryGradleConfiguratior(job);
gradleConfig.refresh();
GradleStep gradle = job.addBuildStep(GradleStep.class);
gradle.setVersion("gradle 2.0");
// gradle.tasks.set("build --stacktrace --debug");
gradle.setTasks("build");
job.save();
Build build = job.startBuild().shouldSucceed();
String log = build.getConsole();
assertThat(log, containsString("build artifactoryPublish"));
assertThat(log, containsString("[buildinfo]"));
assertThat(log, containsString("Deploying artifact"));
assertThat(log, containsRegexp("Deploying build (info|descriptor) to: " + artifactory.getURL() + "/api/build"));
}
Aggregations