Skip to content

Commit

Permalink
[kie-issues#784] Remove unneded environment CI configurations. (#1156)
Browse files Browse the repository at this point in the history
* [NO ISSUE] Remove unneeded environments from the CI builds.

* [kie-issues#784] Remove unneeded environments from the CI builds.
  • Loading branch information
baldimir committed Dec 19, 2023
1 parent e83a2b0 commit a8bfd90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 70 deletions.
26 changes: 4 additions & 22 deletions .ci/jenkins/config/branch.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
generation_config:
missing_environment: ignore
environments:
native:
env_vars:
Expand All @@ -6,26 +8,6 @@ environments:
ADDITIONAL_TIMEOUT: 720
ids:
- native
quarkus-main:
enabled: false
env_vars:
QUARKUS_BRANCH: main
ids:
- quarkus
quarkus-branch:
env_vars:
QUARKUS_BRANCH: '2.16'
ids:
- quarkus
quarkus-3:
pull_request_default_check: false
env_vars:
BUILD_MAVEN_TOOL: maven_3.9.3
BUILD_JDK_TOOL: jdk_17_latest
BUILD_MVN_OPTS: -Denforcer.skip
ids:
- quarkus
- quarkus3
sonarcloud:
auto_generation: false
env_vars:
Expand Down Expand Up @@ -115,7 +97,7 @@ jenkins:
image: quay.io/kiegroup/kogito-ci-build:main-latest
args: --privileged --group-add docker
default_tools:
jdk: jdk_11_latest
maven: maven_3.8.6
jdk: jdk_17_latest
maven: maven_3.9.3
sonar_jdk: jdk_17_latest
jobs_definition_file: .ci/jenkins/dsl/jobs.groovy
48 changes: 0 additions & 48 deletions .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@ setupNightlyJob()
setupQuarkusPlatformJob(JobType.NIGHTLY)
if (isMainStream()) {
setupNightlyCloudJob()
setupQuarkus3NightlyJob()
}

KogitoJobUtils.createEnvironmentIntegrationBranchNightlyJob(this, 'quarkus-main')
KogitoJobUtils.createEnvironmentIntegrationBranchNightlyJob(this, 'quarkus-lts')
KogitoJobUtils.createEnvironmentIntegrationBranchNightlyJob(this, 'quarkus-branch')
KogitoJobUtils.createEnvironmentIntegrationBranchNightlyJob(this, 'native-lts')
KogitoJobUtils.createEnvironmentIntegrationBranchNightlyJob(this, 'quarkus-3', []) { script ->
def jobParams = JobParamsUtils.DEFAULT_PARAMS_GETTER(script)
jobParams.env.put('INTEGRATION_BRANCH_CURRENT', '2.x')
return jobParams
}

// Release
Expand Down Expand Up @@ -212,43 +201,6 @@ void setupNightlyCloudJob() {
}
}

void setupQuarkus3NightlyJob() {
// Tests are done on 9.x/2.x branch => Create 2.x branch on Kogito
// Need to split as Drools and Kogito end up in different integration branches
KogitoJobUtils.createNightlyBuildChainIntegrationJob(this, 'quarkus-3', 'drools', true) { script ->
def jobParams = JobParamsUtils.getDefaultJobParams(script, 'incubator-kie-drools')
jobParams.git.branch = VersionUtils.getProjectTargetBranch('drools', Utils.getGitBranch(this), Utils.getRepoName(this))
jobParams.env.put('ADDITIONAL_TIMEOUT', '180')
jobParams.env.put('BUILD_ENVIRONMENT_OPTIONS_CURRENT', 'rewrite push_changes')
jobParams.env.put('INTEGRATION_BRANCH_CURRENT', '9.x')
// jobParams.env.put('LAUNCH_DOWNSTREAM_JOBS', 'kie-jpmml-integration.integration,kogito-runtimes.integration')
jobParams.env.put('LAUNCH_DOWNSTREAM_JOBS', 'kogito-runtimes.integration')
jobParams.parametersValues.put('SKIP_TESTS', true)
jobParams.parametersValues.put('SKIP_INTEGRATION_TESTS', true)
return jobParams
}
// Commented as not migrated to Apache
// KogitoJobUtils.createBuildChainIntegrationJob(this, 'quarkus-3', 'kie-jpmml-integration', true) { script ->
// def jobParams = JobParamsUtils.getDefaultJobParams(script, 'incubator-kie-jpmml-integration')
// jobParams.env.put('ADDITIONAL_TIMEOUT', '180')
// jobParams.env.put('BUILD_ENVIRONMENT_OPTIONS_CURRENT', 'rewrite push_changes')
// jobParams.env.put('INTEGRATION_BRANCH_CURRENT', '9.x')
// jobParams.parametersValues.put('SKIP_TESTS', true)
// jobParams.parametersValues.put('SKIP_INTEGRATION_TESTS', true)
// return jobParams
// }
KogitoJobUtils.createBuildChainIntegrationJob(this, 'quarkus-3', 'kogito-runtimes', true) { script ->
def jobParams = JobParamsUtils.getDefaultJobParams(script, 'incubator-kie-kogito-runtimes')
jobParams.env.put('ADDITIONAL_TIMEOUT', '720')
jobParams.env.put('BUILD_ENVIRONMENT_OPTIONS_CURRENT', 'rewrite push_changes')
jobParams.env.put('INTEGRATION_BRANCH_CURRENT', '2.x')
jobParams.env.put('BUILDCHAIN_FULL_BRANCH_DOWNSTREAM_BUILD', 'true')
jobParams.parametersValues.put('SKIP_TESTS', true)
jobParams.parametersValues.put('SKIP_INTEGRATION_TESTS', true)
return jobParams
}
}

void setupQuarkusPlatformJob(JobType jobType) {
def jobParams = JobParamsUtils.getBasicJobParams(this, 'quarkus-platform.deploy', jobType, "${jenkins_path}/Jenkinsfile.nightly.quarkus-platform", 'Kogito Quarkus platform job')
JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams)
Expand Down

0 comments on commit a8bfd90

Please sign in to comment.