From 3089d194fa50e742fd2a32c85e08884652b08fb1 Mon Sep 17 00:00:00 2001 From: Surya Nistala Date: Thu, 28 Oct 2021 23:28:55 +0530 Subject: [PATCH] Incremented asynchronous search version to 1.2 Signed-off-by: Surya Nistala --- .github/workflows/build.yml | 24 +------------------ .../workflows/multi-node-test-workflow.yml | 22 +---------------- build.gradle | 4 +++- 3 files changed, 5 insertions(+), 45 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index efaf2f28..117bb1b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,33 +24,11 @@ jobs: uses: actions/setup-java@v1 with: java-version: 14 - # dependencies: OpenSearch - - name: Checkout OpenSearch - uses: actions/checkout@v2 - with: - repository: 'opensearch-project/OpenSearch' - path: OpenSearch - ref: '1.1' - - name: Build OpenSearch - working-directory: ./OpenSearch - run: | - ./gradlew publishToMavenLocal - ./gradlew :distribution:docker:assemble - # dependencies: common-utils - - name: Checkout common-utils - uses: actions/checkout@v2 - with: - ref: '1.1' - repository: 'opensearch-project/common-utils' - path: common-utils - - name: Build common-utils - working-directory: ./common-utils - run: ./gradlew publishToMavenLocal -Dopensearch.version=1.1.0-SNAPSHOT # This step uses the checkout Github action: https://github.com/actions/checkout - name: Checkout Branch uses: actions/checkout@v2 - name: Build with Gradle - run: ./gradlew build -Dopensearch.version=1.1.0-SNAPSHOT + run: ./gradlew build -Dopensearch.version=1.2.0-SNAPSHOT - name: Pull and Run Docker for security tests run: | version=1.1.0-SNAPSHOT diff --git a/.github/workflows/multi-node-test-workflow.yml b/.github/workflows/multi-node-test-workflow.yml index 121704b7..ffc454b7 100644 --- a/.github/workflows/multi-node-test-workflow.yml +++ b/.github/workflows/multi-node-test-workflow.yml @@ -23,31 +23,11 @@ jobs: uses: actions/setup-java@v1 with: java-version: ${{ env.java_version }} - # dependencies: OpenSearch - - name: Checkout OpenSearch - uses: actions/checkout@v2 - with: - repository: 'opensearch-project/OpenSearch' - path: OpenSearch - ref: '1.1' - # dependencies: common-utils - - name: Checkout common-utils - uses: actions/checkout@v2 - with: - ref: '1.1' - repository: 'opensearch-project/common-utils' - path: common-utils - - name: Build OpenSearch - working-directory: ./OpenSearch - run: ./gradlew publishToMavenLocal - - name: Build common-utils - working-directory: ./common-utils - run: ./gradlew publishToMavenLocal -Dopensearch.version=1.1.0-SNAPSHOT # This step uses the checkout Github action: https://github.com/actions/checkout - name: Checkout Branch uses: actions/checkout@v2 - name: Run integration tests with multi node config - run: ./gradlew integTest -PnumNodes=5 -Dopensearch.version=1.1.0-SNAPSHOT + run: ./gradlew integTest -PnumNodes=5 -Dopensearch.version=1.2.0-SNAPSHOT - name: Upload failed logs uses: actions/upload-artifact@v2 if: failure() diff --git a/build.gradle b/build.gradle index 08feca4c..4f71e124 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ buildscript { distribution = 'oss-zip' opensearch_group = "org.opensearch" isSnapshot = "true" == System.getProperty("build.snapshot", "true") - opensearch_version = System.getProperty("opensearch.version", "1.1.0-SNAPSHOT") + opensearch_version = System.getProperty("opensearch.version", "1.2.0-SNAPSHOT") // 1.0.0 -> 1.0.0.0, and 1.0.0-SNAPSHOT -> 1.0.0.0-SNAPSHOT opensearch_build = opensearch_version.replaceAll(/(\.\d)([^\d]*)$/, '$1.0$2') common_utils_version = System.getProperty("common_utils.version", opensearch_build) @@ -24,6 +24,7 @@ buildscript { mavenCentral() maven { url "https://plugins.gradle.org/m2/" } jcenter() + maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" } } dependencies { @@ -44,6 +45,7 @@ repositories { mavenCentral() maven { url "https://plugins.gradle.org/m2/" } jcenter() + maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" } } apply plugin: 'java' apply plugin: 'jacoco'