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] } }