Skip to content

Commit

Permalink
KOGITO-5486 Branch config to enable LTS checks (apache#209)
Browse files Browse the repository at this point in the history
* KOGITO-5486 Branch config to enable LTS checks

* update
  • Loading branch information
radtriste authored Jul 27, 2021
1 parent 69eed80 commit 1dd0c4d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 10 additions & 5 deletions dsl/seed/config/branch.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Disabled until Quarkus 2.2 is out
# Follow-up issue: https://issues.redhat.com/browse/KOGITO-5487
lts:
enabled: false
quarkus_version: '1.11'

disable:
triggers: false
branch: false

repositories:
- name: kogito-pipelines
- name: kogito-runtimes
Expand Down Expand Up @@ -54,8 +64,3 @@ cloud:
latest_git_branch: main
jenkins:
email_creds_id: KOGITO_CI_EMAIL_TO
quarkus:
lts_version: '1.11'
disable:
triggers: false
branch: false
6 changes: 5 additions & 1 deletion dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Utils {
}

static String getQuarkusLTSVersion(def script) {
return getBindingValue(script, 'QUARKUS_LTS_VERSION')
return getBindingValue(script, 'LTS_QUARKUS_VERSION')
}

static boolean isMainBranch(def script) {
Expand All @@ -45,6 +45,10 @@ class Utils {
return result
}

static boolean isLTSBranch(def script) {
return getBindingValue(script, 'LTS_ENABLED').toBoolean()
}

static String getRepoName(def script) {
return getBindingValue(script, 'REPO_NAME')
}
Expand Down

0 comments on commit 1dd0c4d

Please sign in to comment.