From ea84132abab17aefd56633b8301f0f1bc7fe614c Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Wed, 6 Apr 2016 17:29:15 +0200 Subject: [PATCH] #23 - We're now explicitly declaring the source repo to promote from for Artifactory. --- .../data/release/deployment/ArtifactoryClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/data/release/deployment/ArtifactoryClient.java b/src/main/java/org/springframework/data/release/deployment/ArtifactoryClient.java index fe7d449..3b21997 100644 --- a/src/main/java/org/springframework/data/release/deployment/ArtifactoryClient.java +++ b/src/main/java/org/springframework/data/release/deployment/ArtifactoryClient.java @@ -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; } }