#23 - We're now explicitly declaring the source repo to promote from for Artifactory.

This commit is contained in:
Oliver Gierke
2016-04-06 17:29:15 +02:00
parent d162cee3f6
commit 4d07a1c37f

View File

@@ -57,7 +57,8 @@ class ArtifactoryClient {
properties.getStagingRepository(), information.getTargetRepository());
try {
template.postForEntity(uri, new PromotionRequest(information.getTargetRepository()), String.class);
template.postForEntity(uri,
new PromotionRequest(information.getTargetRepository(), properties.getStagingRepository()), String.class);
} catch (HttpClientErrorException o_O) {
handle("Promotion failed!", o_O, module);
}
@@ -116,6 +117,6 @@ class ArtifactoryClient {
@Value
static class PromotionRequest {
String targetRepo;
String targetRepo, sourceRepo;
}
}