|
|
@ -93,7 +93,7 @@ public class ArtifactoryService {
|
|
|
|
|
|
|
|
|
|
|
|
private boolean isAlreadyPromoted(String buildName, String buildNumber, String targetRepo) {
|
|
|
|
private boolean isAlreadyPromoted(String buildName, String buildNumber, String targetRepo) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
logger.debug("Checking if alreay promoted");
|
|
|
|
logger.debug("Checking if already promoted");
|
|
|
|
ResponseEntity<BuildInfoResponse> entity = this.restTemplate
|
|
|
|
ResponseEntity<BuildInfoResponse> entity = this.restTemplate
|
|
|
|
.getForEntity(BUILD_INFO_URL + buildName + "/" + buildNumber, BuildInfoResponse.class);
|
|
|
|
.getForEntity(BUILD_INFO_URL + buildName + "/" + buildNumber, BuildInfoResponse.class);
|
|
|
|
BuildInfoResponse.Status status = entity.getBody().getBuildInfo().getStatuses()[0];
|
|
|
|
BuildInfoResponse.Status status = entity.getBody().getBuildInfo().getStatuses()[0];
|
|
|
|