You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by ab...@apache.org on 2025/07/07 12:56:46 UTC

(kudu) branch master updated: [build] Jenkins jar verification fix

This is an automated email from the ASF dual-hosted git repository.

abukor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 108b1987c [build] Jenkins jar verification fix
108b1987c is described below

commit 108b1987c0d96083a0f21a6a3a41c04b6255b7bd
Author: zchovan <zc...@cloudera.com>
AuthorDate: Wed Jun 18 15:01:13 2025 +0200

    [build] Jenkins jar verification fix
    
    This patch makes sure that every jar is generated for the verify_jars
    script to check, since the command './gradlew $EXTRA_GRADLE_FLAGS clean
    check -x test $EXTRA_GRADLE_TEST_FLAGS;' doesn't trigger the JarTask
    for every module:
    https://scans.gradle.com/s/56bngaczzzegc/timeline?type=org.gradle.api.tasks.bundling.Jar
    
    Currently only the following modules' jars are verified:
    * kudu-spark
    * kudu-client
    * kudu-proto
    * kudu-test-utils
    * kudu-backup-common
    
    Change-Id: Id9db6f8dd2a1559cb4a3974d762ba330d1fe3bb2
    Reviewed-on: http://gerrit.cloudera.org:8080/23043
    Reviewed-by: Attila Bukor <ab...@apache.org>
    Tested-by: Attila Bukor <ab...@apache.org>
---
 build-support/jenkins/build-and-test.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build-support/jenkins/build-and-test.sh b/build-support/jenkins/build-and-test.sh
index 5a9188fd4..0a27462fa 100755
--- a/build-support/jenkins/build-and-test.sh
+++ b/build-support/jenkins/build-and-test.sh
@@ -441,6 +441,12 @@ if [ "$BUILD_TYPE" = "LINT" ]; then
       LINT_FAILURES="$LINT_FAILURES"$'Java Gradle check failed\n'
     fi
 
+    # Make sure every module generates JARs, that we need to verify.
+    if ! ./gradlew $EXTRA_GRADLE_FLAGS assemble; then
+      LINT_RESULT=1
+      LINT_FAILURES="$LINT_FAILURES"$'Java Gradle assemble failed\n'
+    fi
+
     # Verify the contents of the JARs to ensure the shading and
     # packaging is correct.
     if ! $SOURCE_ROOT/build-support/verify_jars.pl .; then