forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add java-matrix and java-fips-matrix Buildkite pipelines (elastic#97253)
- Loading branch information
1 parent
a2d4799
commit 81e1fd2
Showing
8 changed files
with
166 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
|
||
# On some distros, this directory ends up not readable by the `elasticsearch` user that gets created during tests | ||
# This fixes that | ||
chmod 755 ~ | ||
|
||
WORKSPACE="$(pwd)" | ||
export WORKSPACE | ||
|
||
BUILD_NUMBER="$BUILDKITE_BUILD_NUMBER" | ||
export BUILD_NUMBER | ||
|
||
COMPOSE_HTTP_TIMEOUT="120" | ||
export COMPOSE_HTTP_TIMEOUT | ||
|
||
JOB_BRANCH="$BUILDKITE_BRANCH" | ||
export JOB_BRANCH | ||
|
||
GRADLEW="./gradlew --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/" | ||
export GRADLEW | ||
|
||
GRADLEW_BAT="./gradlew.bat --parallel --scan --build-cache --no-watch-fs -Dorg.elasticsearch.build.cache.url=https://gradle-enterprise.elastic.co/cache/" | ||
export GRADLEW_BAT | ||
|
||
export $(cat .ci/java-versions.properties | grep '=' | xargs) | ||
|
||
JAVA_HOME="$HOME/.java/$ES_BUILD_JAVA" | ||
export JAVA_HOME | ||
|
||
JAVA11_HOME="$HOME/.java/java11" | ||
export JAVA11_HOME | ||
|
||
JAVA16_HOME="$HOME/.java/openjdk16" | ||
export JAVA16_HOME | ||
|
||
if [[ "${ES_RUNTIME_JAVA:-}" ]]; then | ||
RUNTIME_JAVA_HOME=$HOME/.java/$ES_RUNTIME_JAVA | ||
export RUNTIME_JAVA_HOME | ||
fi | ||
|
||
GRADLE_BUILD_CACHE_USERNAME=$(vault read -field=username secret/ci/elastic-elasticsearch/migrated/gradle-build-cache) | ||
export GRADLE_BUILD_CACHE_USERNAME | ||
|
||
GRADLE_BUILD_CACHE_PASSWORD=$(vault read -field=password secret/ci/elastic-elasticsearch/migrated/gradle-build-cache) | ||
export GRADLE_BUILD_CACHE_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
steps: | ||
- group: java-fips-matrix | ||
steps: | ||
- label: "{{matrix.ES_RUNTIME_JAVA}} / {{matrix.GRADLE_TASK}} / java-fips-matrix" | ||
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dtests.fips.enabled=true $$GRADLE_TASK | ||
timeout_in_minutes: 180 | ||
matrix: | ||
setup: | ||
ES_RUNTIME_JAVA: | ||
- openjdk17 | ||
GRADLE_TASK: | ||
- checkPart1 | ||
- checkPart2 | ||
- checkPart3 | ||
- bwcTestSnapshots | ||
- checkRestCompat | ||
agents: | ||
provider: gcp | ||
image: family/elasticsearch-ubuntu-2004 | ||
machineType: custom-32-98304 | ||
buildDirectory: /dev/shm/bk | ||
env: | ||
ES_RUNTIME_JAVA: "{{matrix.ES_RUNTIME_JAVA}}" | ||
GRADLE_TASK: "{{matrix.GRADLE_TASK}}" | ||
- group: java-matrix | ||
steps: | ||
- label: "{{matrix.ES_RUNTIME_JAVA}} / {{matrix.GRADLE_TASK}} / java-matrix" | ||
command: .ci/scripts/run-gradle.sh -Dbwc.checkout.align=true $$GRADLE_TASK | ||
timeout_in_minutes: 180 | ||
matrix: | ||
setup: | ||
ES_RUNTIME_JAVA: | ||
- graalvm-ce17 | ||
- openjdk17 | ||
- openjdk18 | ||
- openjdk19 | ||
- openjdk20 | ||
- openjdk21 | ||
GRADLE_TASK: | ||
- checkPart1 | ||
- checkPart2 | ||
- checkPart3 | ||
- bwcTestSnapshots | ||
- checkRestCompat | ||
agents: | ||
provider: gcp | ||
image: family/elasticsearch-ubuntu-2004 | ||
machineType: custom-32-98304 | ||
buildDirectory: /dev/shm/bk | ||
env: | ||
ES_RUNTIME_JAVA: "{{matrix.ES_RUNTIME_JAVA}}" | ||
GRADLE_TASK: "{{matrix.GRADLE_TASK}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters