Skip to content

Commit

Permalink
Remove rc1 qualifier for 2.0 (#600)
Browse files Browse the repository at this point in the history
* Remove rc1 qualifier for 2.0

Signed-off-by: Joshua Li <[email protected]>
(cherry picked from commit d71cddc)
  • Loading branch information
joshuali925 authored and vamsimanohar committed May 13, 2022
1 parent eb65d2d commit 6b37929
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
9 changes: 2 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

buildscript {
ext {
opensearch_version = System.getProperty("opensearch.version", "2.0.0-rc1-SNAPSHOT")
opensearch_version = System.getProperty("opensearch.version", "2.0.0-SNAPSHOT")
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
buildVersionQualifier = System.getProperty("build.version_qualifier", "rc1")
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
version_tokens = opensearch_version.tokenize('-')
opensearch_build = version_tokens[0] + '.0'
if (buildVersionQualifier) {
Expand Down Expand Up @@ -46,11 +46,6 @@ repositories {
mavenCentral() // For Elastic Libs that you can use to get started coding until open OpenSearch libs are available
}

ext {
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
buildVersionQualifier = System.getProperty("build.version_qualifier", "rc1")
}

allprojects {
version = opensearch_version.tokenize('-')[0] + '.0'
if (buildVersionQualifier) {
Expand Down
16 changes: 10 additions & 6 deletions doctest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ build.dependsOn doctest
clean.dependsOn(cleanBootstrap)

// 2.0.0-alpha1-SNAPSHOT -> 2.0.0.0-alpha1-SNAPSHOT
String opensearch_no_snapshot = opensearch_version.replace("-SNAPSHOT","")
String opensearch_build = opensearch_no_snapshot.tokenize('-')[0] + '.0-' + opensearch_no_snapshot.tokenize('-')[1]
String mlCommonsRemoteFile = 'https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/' + opensearch_no_snapshot + '/2500/linux/x64/tar/builds/opensearch/plugins/opensearch-ml-' + opensearch_build +'.zip'
String mlCommonsPlugin = "ml-commons"
String opensearch_no_snapshot = opensearch_version.replace('-SNAPSHOT', '')
String[] version_tokens = opensearch_no_snapshot.tokenize('-')
String opensearch_build = version_tokens[0] + '.0'
if (version_tokens.length > 1) {
opensearch_build += '-' + version_tokens[1]
}
String mlCommonsRemoteFile = 'https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/' + opensearch_no_snapshot + '/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-ml-' + opensearch_build + '.zip'
String mlCommonsPlugin = 'opensearch-ml'

testClusters {
docTestCluster {
Expand All @@ -66,9 +70,9 @@ testClusters {
if (!dir.exists()) {
dir.mkdirs()
}
File f = new File(dir, mlCommonsPlugin)
File f = new File(dir, mlCommonsPlugin + '-' + opensearch_build + '.zip')
if (!f.exists()) {
new URL(mlCommonsRemoteFile).withInputStream{ ins -> f.withOutputStream{ it << ins }}
new URL(mlCommonsRemoteFile).withInputStream{ ins -> f.withOutputStream{ it << ins } }
}
return fileTree(mlCommonsPlugin).getSingleFile()
}
Expand Down
2 changes: 2 additions & 0 deletions doctest/opensearch-ml/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 1 addition & 1 deletion workbench/opensearch_dashboards.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "queryWorkbenchDashboards",
"version": "2.0.0.0-rc1",
"version": "2.0.0.0",
"opensearchDashboardsVersion": "2.0.0",
"server": true,
"ui": true,
Expand Down
2 changes: 1 addition & 1 deletion workbench/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opensearch-query-workbench",
"version": "2.0.0.0-rc1",
"version": "2.0.0.0",
"description": "Query Workbench",
"main": "index.js",
"license": "Apache-2.0",
Expand Down

0 comments on commit 6b37929

Please sign in to comment.