Snapshots are published with a -latest flag into s3, this updates the pattern to correctly point to -latest. Signed-off-by: Marc Handalian <handalm@amazon.com>
This commit is contained in:
parent
b749b38043
commit
36401d9edb
|
@ -68,7 +68,7 @@ class DistributionDownloadFixture {
|
||||||
platform == OpenSearchDistribution.Platform.DARWIN)) ? "tar.gz" : "zip"
|
platform == OpenSearchDistribution.Platform.DARWIN)) ? "tar.gz" : "zip"
|
||||||
if (Version.fromString(version).onOrAfter(Version.fromString("1.0.0"))) {
|
if (Version.fromString(version).onOrAfter(Version.fromString("1.0.0"))) {
|
||||||
if (version.contains("SNAPSHOT")) {
|
if (version.contains("SNAPSHOT")) {
|
||||||
return "/snapshots/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64.$fileType"
|
return "/snapshots/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64-latest.$fileType"
|
||||||
}
|
}
|
||||||
return "/releases/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64.$fileType"
|
return "/releases/core/opensearch/${version}/opensearch-min-${version}-${platform}-x64.$fileType"
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class DistributionDownloadPlugin implements Plugin<Project> {
|
||||||
|
|
||||||
private static final String RELEASE_PATTERN_LAYOUT = "/core/opensearch/[revision]/[module]-min-[revision](-[classifier]).[ext]";
|
private static final String RELEASE_PATTERN_LAYOUT = "/core/opensearch/[revision]/[module]-min-[revision](-[classifier]).[ext]";
|
||||||
private static final String SNAPSHOT_PATTERN_LAYOUT =
|
private static final String SNAPSHOT_PATTERN_LAYOUT =
|
||||||
"/snapshots/core/opensearch/[revision]/[module]-min-[revision](-[classifier]).[ext]";
|
"/snapshots/core/opensearch/[revision]/[module]-min-[revision](-[classifier])-latest.[ext]";
|
||||||
|
|
||||||
private NamedDomainObjectContainer<OpenSearchDistribution> distributionsContainer;
|
private NamedDomainObjectContainer<OpenSearchDistribution> distributionsContainer;
|
||||||
private NamedDomainObjectContainer<DistributionResolution> distributionsResolutionStrategiesContainer;
|
private NamedDomainObjectContainer<DistributionResolution> distributionsResolutionStrategiesContainer;
|
||||||
|
|
Loading…
Reference in New Issue