Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Jul 24, 2023
1 parent 6ec5bf0 commit d0e7eb4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}

Expand Down

0 comments on commit d0e7eb4

Please sign in to comment.