From 4c6ba48bf9fb9234ad8bc0b9193f3c68409acfb9 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Mon, 30 Oct 2023 19:35:01 -0400 Subject: [PATCH] Fix the bwc test version retrieval (#1093) * Onboarding jenkins prod docker images to github actions Signed-off-by: Peter Zhu * Add temurin Signed-off-by: Peter Zhu * Add temurin Signed-off-by: Peter Zhu * Add more Signed-off-by: Peter Zhu * Add more Signed-off-by: Peter Zhu * Add more Signed-off-by: Peter Zhu --------- Signed-off-by: Peter Zhu --- .github/workflows/test_bwc.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test_bwc.yml b/.github/workflows/test_bwc.yml index 0dc33d264..10d41b70c 100644 --- a/.github/workflows/test_bwc.yml +++ b/.github/workflows/test_bwc.yml @@ -42,9 +42,8 @@ jobs: - name: Assemble anomaly-detection run: | + plugin_version=`./gradlew properties -q | grep "opensearch_build:" | awk '{print $2}'` chown -R 1000:1000 `pwd` - su `id -un 1000` -c "./gradlew properties -q | grep 'opensearch_build:' | awk '{print $2}'" > /tmp/plugin_version.txt - plugin_version=`cat /tmp/plugin_version.txt` echo plugin_version $plugin_version su `id -un 1000` -c "./gradlew assemble" echo "Creating ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/$plugin_version ..."