@@ -135,23 +135,12 @@ jobs:
135135 - name : Build (most) of Ozone
136136 run : |
137137 args="-DskipRecon -DskipShade -Dmaven.javadoc.skip=true -Drocks_tools_native"
138- if [[ "$RATIS_VERSION" != "" ]]; then
139- args="$args -Dratis.version=$ratis_version"
140- args="$args -Dratis.thirdparty.version=$ratis_thirdparty_version"
141- args="$args -Dratis-thirdparty.grpc.version=$grpc_version"
142- args="$args -Dratis-thirdparty.netty.version=$netty_version"
143- args="$args -Dratis-thirdparty.protobuf.version=$protobuf_version"
144- fi
145-
138+ args="$args $ratis_args"
146139 args="$args -am -pl :$SUBMODULE"
147140
148141 hadoop-ozone/dev-support/checks/build.sh $args
149142 env :
150- ratis_version : ${{ needs.ratis.outputs.ratis-version }}
151- ratis_thirdparty_version : ${{ needs.ratis.outputs.thirdparty-version }}
152- grpc_version : ${{ needs.ratis.outputs.grpc-version }}
153- netty_version : ${{ needs.ratis.outputs.netty-version }}
154- protobuf_version : ${{ needs.ratis.outputs.protobuf-version }}
143+ ratis_args : ${{ needs.ratis.outputs.build-args }}
155144 - name : Store Maven repo for tests
156145 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
157146 with :
@@ -212,14 +201,7 @@ jobs:
212201 fi
213202
214203 args="-DexcludedGroups=slow|unhealthy -DskipShade -Drocks_tools_native"
215- if [[ "$RATIS_VERSION" != "" ]]; then
216- args="$args -Dratis.version=$ratis_version"
217- args="$args -Dratis.thirdparty.version=$ratis_thirdparty_version"
218- args="$args -Dratis-thirdparty.grpc.version=$grpc_version"
219- args="$args -Dratis-thirdparty.netty.version=$netty_version"
220- args="$args -Dratis-thirdparty.protobuf.version=$protobuf_version"
221- fi
222-
204+ args="$args $ratis_args"
223205 args="$args -pl :$SUBMODULE"
224206
225207 if [ "$TEST_METHOD" = "ALL" ]; then
@@ -235,14 +217,10 @@ jobs:
235217 env :
236218 DEVELOCITY_ACCESS_KEY : ${{ secrets.DEVELOCITY_ACCESS_KEY }}
237219 repo_path : ${{ steps.download-ozone-repo.outputs.download-path }}
238- ratis_version : ${{ needs.ratis.outputs.ratis-version }}
239- ratis_thirdparty_version : ${{ needs.ratis.outputs.thirdparty-version }}
240- grpc_version : ${{ needs.ratis.outputs.grpc-version }}
241- netty_version : ${{ needs.ratis.outputs.netty-version }}
242- protobuf_version : ${{ needs.ratis.outputs.protobuf-version }}
220+ ratis_args : ${{ needs.ratis.outputs.build-args }}
243221 - name : Summary of failures
244222 run : hadoop-ozone/dev-support/checks/_summary.sh target/unit/summary.txt
245- if : ${{ !cancelled () }}
223+ if : ${{ failure () }}
246224 - name : Archive build results
247225 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
248226 if : ${{ failure() }}
0 commit comments