From d0e7eb4738c1d21bfd83b7e9c703a0494b414783 Mon Sep 17 00:00:00 2001 From: Tristan Radisson Date: Mon, 24 Jul 2023 13:43:25 +0200 Subject: [PATCH] Review comments --- .ci/jenkins/dsl/jobs.groovy | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy index 2ed43ffd948..df99a480baf 100644 --- a/.ci/jenkins/dsl/jobs.groovy +++ b/.ci/jenkins/dsl/jobs.groovy @@ -18,18 +18,12 @@ import org.kie.jenkins.jobdsl.Utils jenkins_path = '.ci/jenkins' -boolean isStream8() { - return getDroolsStream() == '8' -} - String getDroolsStream() { String gitMainBranch = "${GIT_MAIN_BRANCH}" if (gitMainBranch == 'main') { return '8' - } else if (gitMainBranch == '9.x') { - return '9' } else { - return gitMainBranch + return gitMainBranch.split("\\.")[0] } }