Skip to content

Commit

Permalink
Quarkus 3: Disable kie-jpmml-integration calls
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Aug 25, 2023
1 parent 3fd51b3 commit e753af0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .ci/jenkins/project/Jenkinsfile.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ pipeline {
}
}
stage('Build & Deploy KIE jpmml integration') {
when {
expression { isMainStream() }
}
steps {
script {
def buildParams = getDefaultBuildParams()
Expand Down Expand Up @@ -169,3 +172,7 @@ void addBooleanParam(List buildParams, String key, boolean value) {
String getBuildBranch() {
return env.GIT_BRANCH_NAME
}

boolean isMainStream() {
return env.STREAM == 'main'
}
9 changes: 8 additions & 1 deletion .ci/jenkins/project/Jenkinsfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ pipeline {
}

stage('Build & Deploy KIE jpmml integration') {
when {
expression { isMainStream() }
}
steps {
script {
def buildParams = getDefaultBuildParams()
Expand Down Expand Up @@ -128,7 +131,7 @@ pipeline {

stage('Promote KIE jpmml integration') {
when {
expression { return isJobConsideredOk(getDeployJobName(kieJpmmlIntegrationRepo)) }
expression { return isMainStream() && isJobConsideredOk(getDeployJobName(kieJpmmlIntegrationRepo)) }
}
steps {
script {
Expand Down Expand Up @@ -407,3 +410,7 @@ boolean areArtifactsReleased() {
void setArtifactsReleased() {
setReleasePropertyIfneeded(ARTIFACTS_RELEASE_STAGE, true)
}

boolean isMainStream() {
return env.STREAM == 'main'
}
7 changes: 7 additions & 0 deletions .ci/jenkins/project/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ pipeline {
}

stage('Init KIE jpmml integration') {
when {
expression { isMainStream() }
}
steps {
script {
def buildParams = getDefaultBuildParams()
Expand Down Expand Up @@ -194,3 +197,7 @@ String getVersionFromReleaseBranch(String releaseBranch, int microVersion = 0, S
error 'Cannot parse given branch as a release branch, aka [M].[m].x ...'
}
}

boolean isMainStream() {
return env.STREAM == 'main'
}

0 comments on commit e753af0

Please sign in to comment.