#23 - We're now explicitly declaring the source repo to promote from for Artifactory.
This commit is contained in:
@@ -57,7 +57,8 @@ class ArtifactoryClient {
|
|||||||
properties.getStagingRepository(), information.getTargetRepository());
|
properties.getStagingRepository(), information.getTargetRepository());
|
||||||
|
|
||||||
try {
|
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) {
|
} catch (HttpClientErrorException o_O) {
|
||||||
handle("Promotion failed!", o_O, module);
|
handle("Promotion failed!", o_O, module);
|
||||||
}
|
}
|
||||||
@@ -116,6 +117,6 @@ class ArtifactoryClient {
|
|||||||
|
|
||||||
@Value
|
@Value
|
||||||
static class PromotionRequest {
|
static class PromotionRequest {
|
||||||
String targetRepo;
|
String targetRepo, sourceRepo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user