diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c4a792057..93392b59d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,7 +8,6 @@ on: - "*" jobs: - Build-ad: strategy: matrix: @@ -29,28 +28,28 @@ jobs: - name: Assemble anomaly-detection run: | - ./gradlew assemble -Dopensearch.version=1.2.1-SNAPSHOT - echo "Creating ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.1.0-SNAPSHOT ..." - mkdir -p ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.1.0-SNAPSHOT - echo "Copying ./build/distributions/*.zip to ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.1.0-SNAPSHOT ..." + ./gradlew assemble -Dopensearch.version=1.2.2-SNAPSHOT + echo "Creating ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.2.0-SNAPSHOT ..." + mkdir -p ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.2.0-SNAPSHOT + echo "Copying ./build/distributions/*.zip to ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.2.0-SNAPSHOT ..." ls ./build/distributions/ - cp ./build/distributions/*.zip ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.1.0-SNAPSHOT - echo "Copied ./build/distributions/*.zip to ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.1.0-SNAPSHOT ..." - ls ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.1.0-SNAPSHOT + cp ./build/distributions/*.zip ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.2.0-SNAPSHOT + echo "Copied ./build/distributions/*.zip to ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.2.0-SNAPSHOT ..." + ls ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/1.2.2.0-SNAPSHOT - name: Build and Run Tests run: | - ./gradlew build -Dopensearch.version=1.2.1-SNAPSHOT + ./gradlew build -Dopensearch.version=1.2.2-SNAPSHOT - name: Publish to Maven Local run: | - ./gradlew publishToMavenLocal -Dopensearch.version=1.2.1-SNAPSHOT + ./gradlew publishToMavenLocal -Dopensearch.version=1.2.2-SNAPSHOT - name: Multi Nodes Integration Testing run: | ./gradlew integTest -PnumNodes=3 - name: Pull and Run Docker run: | plugin=`ls build/distributions/*.zip` - version=1.2.1-SNAPSHOT - plugin_version=1.2.1.0-SNAPSHOT + version=1.2.2-SNAPSHOT + plugin_version=1.2.2.0-SNAPSHOT echo Using OpenSearch $version with AD $plugin_version cd .. if docker pull opensearchstaging/opensearch:$version @@ -90,4 +89,4 @@ jobs: uses: codecov/codecov-action@v1 with: file: ./build/reports/jacoco/test/jacocoTestReport.xml - flags: plugin \ No newline at end of file + flags: plugin diff --git a/build.gradle b/build.gradle index 0972057ea..01484dd95 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ import org.opensearch.gradle.testclusters.StandaloneRestIntegTestTask buildscript { ext { opensearch_group = "org.opensearch" - opensearch_version = System.getProperty("opensearch.version", "1.2.1-SNAPSHOT") + opensearch_version = System.getProperty("opensearch.version", "1.2.2-SNAPSHOT") // 1.2.0 -> 1.2.0.0, and 1.2.0-SNAPSHOT -> 1.2.0.0-SNAPSHOT opensearch_build = opensearch_version.replaceAll(/(\.\d)([^\d]*)$/, '$1.0$2') common_utils_version = System.getProperty("common_utils.version", opensearch_build) @@ -301,7 +301,7 @@ String bwcFilePath = "src/test/resources/org/opensearch/ad/bwc/" testClusters { "${baseName}$i" { testDistribution = "ARCHIVE" - versions = ["7.10.2","1.2.1-SNAPSHOT"] + versions = ["7.10.2","1.2.2-SNAPSHOT"] numberOfNodes = 3 plugin(provider(new Callable(){ @Override diff --git a/src/test/resources/job-scheduler/opensearch-job-scheduler-1.2.1.0-SNAPSHOT.zip b/src/test/resources/job-scheduler/opensearch-job-scheduler-1.2.1.0-SNAPSHOT.zip deleted file mode 100644 index 61a5738a6..000000000 Binary files a/src/test/resources/job-scheduler/opensearch-job-scheduler-1.2.1.0-SNAPSHOT.zip and /dev/null differ diff --git a/src/test/resources/job-scheduler/opensearch-job-scheduler-1.2.2.0-SNAPSHOT.zip b/src/test/resources/job-scheduler/opensearch-job-scheduler-1.2.2.0-SNAPSHOT.zip new file mode 100644 index 000000000..62f0d5212 Binary files /dev/null and b/src/test/resources/job-scheduler/opensearch-job-scheduler-1.2.2.0-SNAPSHOT.zip differ diff --git a/src/test/resources/org/opensearch/ad/bwc/job-scheduler/1.2.2.0-SNAPSHOT/opensearch-job-scheduler-1.2.2.0-SNAPSHOT.zip b/src/test/resources/org/opensearch/ad/bwc/job-scheduler/1.2.2.0-SNAPSHOT/opensearch-job-scheduler-1.2.2.0-SNAPSHOT.zip new file mode 100644 index 000000000..62f0d5212 Binary files /dev/null and b/src/test/resources/org/opensearch/ad/bwc/job-scheduler/1.2.2.0-SNAPSHOT/opensearch-job-scheduler-1.2.2.0-SNAPSHOT.zip differ