Skip to content

Commit

Permalink
MINOR: Disable JDK 11 and 17 tests on PRs (apache#16051)
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Harris <greg.harris@aiven.io>
Reviewers: Justine Olshan <jolshan@confluent.io>, David Arthur <mumrah@gmail.com>, Ismael Juma <ismael@juma.me.uk>, Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
  • Loading branch information
gharris1727 authored and chiacyu committed Jun 1, 2024
1 parent d981cb5 commit 87cf561
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -132,7 +138,7 @@ pipeline {
}
steps {
doValidation()
doTest(env)
runTestOnDevBranch(env)
echo 'Skipping Kafka Streams archetype test for Java 11'
}
}
Expand All @@ -151,7 +157,7 @@ pipeline {
}
steps {
doValidation()
doTest(env)
runTestOnDevBranch(env)
echo 'Skipping Kafka Streams archetype test for Java 17'
}
}
Expand Down

0 comments on commit 87cf561

Please sign in to comment.