You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by gh...@apache.org on 2024/05/28 01:33:08 UTC

(kafka) branch trunk updated: MINOR: Disable JDK 11 and 17 tests on PRs (#16051)

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

gharris pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new adab48df683 MINOR: Disable JDK 11 and 17 tests on PRs (#16051)
adab48df683 is described below

commit adab48df6830259d33bd9705b91885c4f384f267
Author: Greg Harris <gr...@aiven.io>
AuthorDate: Mon May 27 18:33:01 2024 -0700

    MINOR: Disable JDK 11 and 17 tests on PRs (#16051)
    
    Signed-off-by: Greg Harris <gr...@aiven.io>
    Reviewers: Justine Olshan <jo...@confluent.io>, David Arthur <mu...@gmail.com>, Ismael Juma <is...@juma.me.uk>, Luke Chen <sh...@gmail.com>, Chia-Ping Tsai <ch...@gmail.com>
---
 Jenkinsfile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 50b7f6a298e..0a795637ff6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -36,6 +36,12 @@ def doTest(env, target = "test") {
   junit '**/build/test-results/**/TEST-*.xml'
 }
 
+def runTestOnDevBranch(env) {
+  if (!isChangeRequest(env)) {
+    doTest(env)
+  }
+}
+
 def doStreamsArchetype() {
   echo 'Verify that Kafka Streams archetype compiles'
 
@@ -132,7 +138,7 @@ pipeline {
           }
           steps {
             doValidation()
-            doTest(env)
+            runTestOnDevBranch(env)
             echo 'Skipping Kafka Streams archetype test for Java 11'
           }
         }
@@ -151,7 +157,7 @@ pipeline {
           }
           steps {
             doValidation()
-            doTest(env)
+            runTestOnDevBranch(env)
             echo 'Skipping Kafka Streams archetype test for Java 17'
           }
         }