pull/27779/head
Madhura Bhave 3 years ago
parent 7617f0df60
commit 82963a39be

@ -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];

Loading…
Cancel
Save