Skip to content

Commit 46fe36f

Browse files
disabled snapshot generation during build
Signed-off-by: nishtham <nishtham@amazon.com>
1 parent 6f0d710 commit 46fe36f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Build and Test
5050
run: |
5151
chown -R 1000:1000 `pwd`
52-
su `id -un 1000` -c "whoami && java -version && ./gradlew build"
52+
su `id -un 1000` -c "whoami && java -version && ./gradlew build -Dbuild.snapshot=false -Dopensearch.version=3.1.0"
5353
5454
- name: Create Artifact Path
5555
run: |
@@ -112,7 +112,7 @@ jobs:
112112

113113
- name: Build and Test
114114
working-directory: ${{ env.WORKING_DIR }}
115-
run: ./gradlew build ${{ env.BUILD_ARGS }}
115+
run: ./gradlew -Dbuild.snapshot=false -Dopensearch.version=3.1.0 build ${{ env.BUILD_ARGS }}
116116
env:
117117
_JAVA_OPTIONS: ${{ matrix.os_java_options }}
118118

.github/workflows/security-test-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Run integration tests
5050
run: |
5151
chown -R 1000:1000 `pwd`
52-
su `id -un 1000` -c "./gradlew integTest -Dsecurity=true -Dhttps=true --tests '*IT'"
52+
su `id -un 1000` -c "./gradlew integTest -Dbuild.snapshot=false -Dsecurity=true -Dopensearch.version=3.1.0 -Dhttps=true --tests '*IT'"
5353
5454
- name: Upload failed logs
5555
uses: actions/upload-artifact@v4

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ buildscript {
3333
}
3434

3535
alerting_spi_build = opensearch_build
36-
alerting_spi_build += "-SNAPSHOT"
3736
if (isSnapshot) {
37+
alerting_spi_build += "-SNAPSHOT"
3838
opensearch_build += "-SNAPSHOT"
3939

4040
// TODO consider enabling snapshot options once SA commons is published to maven central

0 commit comments

Comments
 (0)