Skip to content

Commit 9989ff2

Browse files
peterzhuamazonbharath-techie
authored andcommitted
Update datafusion build script in jenkins (opensearch-project#19852)
Signed-off-by: Peter Zhu <[email protected]>
1 parent 8fbbc41 commit 9989ff2

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

scripts/build.sh

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,19 @@ fi
7070

7171
[ -z "$OUTPUT" ] && OUTPUT=artifacts
7272

73+
echo "Creating output directory $OUTPUT/maven/org/opensearch if it doesn't already exist"
7374
mkdir -p $OUTPUT/maven/org/opensearch
7475

7576
# Build project and publish to maven local.
76-
./gradlew publishToMavenLocal -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
77+
echo "Building and publishing OpenSearch project to Maven Local"
78+
./gradlew publishToMavenLocal -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER -PrustRelease
7779

7880
# Publish to existing test repo, using this to stage release versions of the artifacts that can be released from the same build.
79-
./gradlew publishNebulaPublicationToTestRepository -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
81+
echo "Publishing OpenSearch to Test Repository"
82+
./gradlew publishNebulaPublicationToTestRepository -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER -PrustRelease
8083

8184
# Copy maven publications to be promoted
85+
echo "Copying Maven publications to $OUTPUT/maven/org"
8286
cp -r ./build/local-test-repo/org/opensearch "${OUTPUT}"/maven/org
8387

8488
# Assemble distribution artifact
@@ -103,6 +107,27 @@ case $PLATFORM-$DISTRIBUTION-$ARCHITECTURE in
103107
TARGET="$PLATFORM-arm64-$PACKAGE"
104108
SUFFIX="$PLATFORM-arm64"
105109
;;
110+
linux-tar-ppc64le)
111+
PACKAGE="tar"
112+
EXT="tar.gz"
113+
TYPE="archives"
114+
TARGET="$PLATFORM-ppc64le-$PACKAGE"
115+
SUFFIX="$PLATFORM-ppc64le"
116+
;;
117+
linux-deb-x64)
118+
PACKAGE="deb"
119+
EXT="deb"
120+
TYPE="packages"
121+
TARGET="deb"
122+
SUFFIX="amd64"
123+
;;
124+
linux-deb-arm64)
125+
PACKAGE="deb"
126+
EXT="deb"
127+
TYPE="packages"
128+
TARGET="arm64-deb"
129+
SUFFIX="arm64"
130+
;;
106131
linux-rpm-x64)
107132
PACKAGE="rpm"
108133
EXT="rpm"
@@ -139,9 +164,10 @@ esac
139164

140165
echo "Building OpenSearch for $PLATFORM-$DISTRIBUTION-$ARCHITECTURE"
141166

142-
./gradlew :distribution:$TYPE:$TARGET:assemble -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
167+
./gradlew :distribution:$TYPE:$TARGET:assemble -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER -PrustRelease
143168

144169
# Copy artifact to dist folder in bundle build output
170+
echo "Copying artifact to ${OUTPUT}/dist"
145171
[[ "$SNAPSHOT" == "true" ]] && IDENTIFIER="-SNAPSHOT"
146172
ARTIFACT_BUILD_NAME=`ls distribution/$TYPE/$TARGET/build/distributions/ | grep "opensearch-min.*$SUFFIX.$EXT"`
147173
mkdir -p "${OUTPUT}/dist"
@@ -150,7 +176,7 @@ cp distribution/$TYPE/$TARGET/build/distributions/$ARTIFACT_BUILD_NAME "${OUTPUT
150176
echo "Building core plugins..."
151177
mkdir -p "${OUTPUT}/core-plugins"
152178
cd plugins
153-
../gradlew assemble -Dbuild.snapshot="$SNAPSHOT" -Dbuild.version_qualifier=$QUALIFIER
179+
../gradlew assemble -Dbuild.snapshot="$SNAPSHOT" -Dbuild.version_qualifier=$QUALIFIER -PrustRelease
154180
cd ..
155181
for plugin in plugins/*; do
156182
PLUGIN_NAME=$(basename "$plugin")

0 commit comments

Comments
 (0)