Skip to content

Commit f277311

Browse files
committed
Use separate variable for qualifier build args
1 parent 56761ae commit f277311

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.buildkite/dra.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ BASE_VERSION="$HADOOP_VERSION"
1616

1717
VERSION_SUFFIX=""
1818
BUILD_ARGS="-Dbuild.snapshot=false"
19+
QUALIFIER_BUILD_ARGS=""
1920
if [[ "$DRA_WORKFLOW" == "snapshot" ]]; then
2021
VERSION_SUFFIX="-SNAPSHOT"
2122
BUILD_ARGS="-Dbuild.snapshot=true"
@@ -27,7 +28,7 @@ if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
2728
fi
2829

2930
if [[ -n "${VERSION_QUALIFIER:-}" ]]; then
30-
BUILD_ARGS="$BUILD_ARGS -Dbuild.version_qualifier=$VERSION_QUALIFIER"
31+
QUALIFIER_BUILD_ARGS="-Dbuild.version_qualifier=$VERSION_QUALIFIER"
3132
HADOOP_VERSION="${HADOOP_VERSION}-${VERSION_QUALIFIER}"
3233
fi
3334

@@ -44,7 +45,7 @@ mkdir localRepo
4445
wget --quiet "https://artifacts-$DRA_WORKFLOW.elastic.co/elasticsearch/${ES_BUILD_ID}/maven/org/elasticsearch/gradle/build-tools/${HADOOP_VERSION}${VERSION_SUFFIX}/build-tools-${HADOOP_VERSION}${VERSION_SUFFIX}.jar" \
4546
-O "localRepo/build-tools-${HADOOP_VERSION}${VERSION_SUFFIX}.jar"
4647

47-
./gradlew -S -PlocalRepo=true "${BUILD_ARGS}" -Dorg.gradle.warning.mode=summary -Dcsv="$WORKSPACE/build/distributions/dependencies-${HADOOP_VERSION}${VERSION_SUFFIX}.csv" :dist:generateDependenciesReport distribution
48+
./gradlew -S -PlocalRepo=true "${BUILD_ARGS}" "${QUALIFIER_BUILD_ARGS}" -Dorg.gradle.warning.mode=summary -Dcsv="$WORKSPACE/build/distributions/dependencies-${HADOOP_VERSION}${VERSION_SUFFIX}.csv" :dist:generateDependenciesReport distribution
4849

4950
# Allow other users access to read the artifacts so they are readable in the container
5051
find "$WORKSPACE" -type f -path "*/build/distributions/*" -exec chmod a+r {} \;

0 commit comments

Comments
 (0)