Skip to content

Commit

Permalink
fix folder version
Browse files Browse the repository at this point in the history
  • Loading branch information
matejsp committed Sep 17, 2020
1 parent 0215b9a commit b3a4685
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@ public Response content(
return commitAndReturn(NOT_FOUND, tx);
}

String folderVersion = version.replaceAll("-\\d{8}\\.\\d{6}\\-\\d+", "-SNAPSHOT");
String fileName = artifactId + "-" + version + (isBlank(classifier) ? "" : ("-" + classifier)) + "." + extension;
String path = groupId.replace(".", "/") +
"/" + artifactId +
"/" + version +
"/" + folderVersion +
"/" + fileName;

Asset asset = tx.findAssetWithProperty("name", path, bucket);
log.debug("rundeck download asset: {}", asset);
if (null == asset) {
Expand Down

0 comments on commit b3a4685

Please sign in to comment.