File tree Expand file tree Collapse file tree 4 files changed +26
-9
lines changed
Expand file tree Collapse file tree 4 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 3030
3131 - label : example-plugins
3232 command : |-
33- cd $$WORKSPACE/plugins/examples
34-
35- $$WORKSPACE/.ci/scripts/run-gradle.sh build
33+ ./.ci/scripts/example-plugins.sh build
3634 timeout_in_minutes : 300
3735 agents :
3836 provider : gcp
Original file line number Diff line number Diff line change @@ -753,9 +753,7 @@ steps:
753753
754754 - label : example-plugins
755755 command : |-
756- cd $$WORKSPACE/plugins/examples
757-
758- $$WORKSPACE/.ci/scripts/run-gradle.sh build
756+ ./.ci/scripts/example-plugins.sh build
759757 timeout_in_minutes : 300
760758 agents :
761759 provider : gcp
Original file line number Diff line number Diff line change 77steps :
88 - label : example-plugins
99 command : |-
10- cd $$WORKSPACE/plugins/examples
11-
12- $$WORKSPACE/.ci/scripts/run-gradle.sh -Dorg.gradle.jvmargs=-Xmx8g build --include-build $$WORKSPACE
10+ ./.ci/scripts/example-plugins.sh -Dorg.gradle.jvmargs=-Xmx8g build --include-build $$WORKSPACE
1311 timeout_in_minutes : 300
1412 agents :
1513 provider : gcp
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euo pipefail
4+
5+ # Older versions of openjdk are incompatible to newer kernel of ubuntu. Use adoptopenjdk17 instead
6+ resolve_java_home () {
7+ if [[ " $ES_BUILD_JAVA " == * " openjdk17" * ]]; then
8+ if [ -f " /etc/os-release" ]; then
9+ . /etc/os-release
10+ if [[ " $ID " == " ubuntu" && " $VERSION_ID " == " 24.04" ]]; then
11+ echo " $HOME /.java/adoptopenjdk17"
12+ return
13+ fi
14+ fi
15+ fi
16+
17+ echo " $JAVA_HOME "
18+ }
19+
20+ cd $WORKSPACE /plugins/examples
21+
22+ JAVA_HOME=$( resolve_java_home) \
23+ $WORKSPACE /.ci/scripts/run-gradle.sh $@
You can’t perform that action at this time.
0 commit comments