Updating JSON
This commit is contained in:
@@ -167,7 +167,7 @@ public class ReleaseBundleCreator {
|
||||
ArtifactoryRequest request = new ArtifactoryRequestImpl().method(ArtifactoryRequest.Method.POST)
|
||||
.apiUrl("lifecycle/api/v2/distribution/remote_delete/" + releaseBundleName + "/" + version)
|
||||
.addQueryParam("project", "spring").requestType(ArtifactoryRequest.ContentType.JSON)
|
||||
.responseType(ArtifactoryRequest.ContentType.JSON).requestBody(createDistributionJson());
|
||||
.responseType(ArtifactoryRequest.ContentType.JSON).requestBody(createDeleteDistributionJson());
|
||||
try {
|
||||
return makeArtifactoryRequest(request);
|
||||
}
|
||||
@@ -196,6 +196,12 @@ public class ReleaseBundleCreator {
|
||||
return json;
|
||||
}
|
||||
|
||||
private Map<String, Object> createDeleteDistributionJson() {
|
||||
Map<String, Object> json = new HashMap<>();
|
||||
json.put("distribution_rules", List.of(Collections.singletonMap("site_name", "JP-SaaS")));
|
||||
return json;
|
||||
}
|
||||
|
||||
private Map<String, Object> createMappings() {
|
||||
Map<String, Object> mappings = new HashMap<>();
|
||||
mappings.put("input", "spring-enterprise-maven-prod-local/(.*)");
|
||||
|
||||
Reference in New Issue
Block a user