Commit da61023 1 parent 20800df commit da61023 Copy full SHA for da61023
File tree 2 files changed +21
-7
lines changed
notifications/notifications
2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ name: Test and Build Notifications
7
7
8
8
on : [push, pull_request]
9
9
10
- env :
11
- ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
12
-
13
10
jobs :
14
11
Get-CI-Image-Tag :
15
12
uses : opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
@@ -31,12 +28,15 @@ jobs:
31
28
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
32
29
# this image tag is subject to change as more dependencies and updates will arrive over time
33
30
image : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
34
- # need to switch to root so that github actions can install runner binary on container without permission issues.
35
- options : --user root
31
+ options : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }}
32
+
36
33
37
34
steps :
35
+ - name : Run start commands
36
+ run : ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }}
37
+
38
38
- name : Set up JDK ${{ matrix.java }}
39
- uses : actions/setup-java@v2
39
+ uses : actions/setup-java@v4
40
40
with :
41
41
distribution : temurin # Temurin is a distribution of adoptium
42
42
java-version : ${{ matrix.java }}
Original file line number Diff line number Diff line change @@ -266,7 +266,21 @@ testClusters.integTest {
266
266
}
267
267
268
268
// Always be minimumCompatibilityVersion of current opensearch version(3.0.0)
269
- def bwcVersionShort = " 2.14.0"
269
+ // get latest 2.x version from OpenSearch 2.x branch
270
+ static def fetchVersionProperties () {
271
+ def url = ' https://raw.githubusercontent.com/opensearch-project/OpenSearch/refs/heads/2.x/buildSrc/version.properties'
272
+ def content = new URL (url). text
273
+ // Use regex to extract the version number
274
+ def matcher = content =~ / opensearch\s *=\s *(\d +\.\d +\.\d +)/
275
+ if (matcher. find()) {
276
+ def version = matcher. group(1 )
277
+ println (" Extracted latest 2.x version: $version " )
278
+ return version
279
+ } else {
280
+ return " 2.19.0"
281
+ }
282
+ }
283
+ String bwcVersionShort = fetchVersionProperties()
270
284
def bwcVersion = bwcVersionShort + " .0"
271
285
def bwcOpenSearchVesion= bwcVersionShort + " -SNAPSHOT"
272
286
def bwcPluginVersion = bwcVersion + " -SNAPSHOT"
You can’t perform that action at this time.
0 commit comments