Skip to content

Commit

Permalink
CI: Review full profile usage
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Aug 16, 2023
1 parent fe73ad5 commit 21f43bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
9 changes: 9 additions & 0 deletions .ci/jenkins/config/branch.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
environments:
default:
env_vars:
DROOLS_BUILD_MVN_OPTS: -Dfull
native:
env_vars:
NATIVE: true
BUILD_MVN_OPTS_CURRENT: -Dnative -Dquarkus.native.container-build=true
DROOLS_BUILD_MVN_OPTS: -Dfull
ADDITIONAL_TIMEOUT: 720
ids:
- native
Expand All @@ -20,6 +24,7 @@ environments:
enabled: false
env_vars:
QUARKUS_BRANCH: main
DROOLS_BUILD_MVN_OPTS: -Dfull
ids:
- quarkus
quarkus-3:
Expand All @@ -28,12 +33,15 @@ environments:
BUILD_MAVEN_TOOL: kie-maven-3.9.1
BUILD_JDK_TOOL: kie-jdk17
BUILD_MVN_OPTS: -Denforcer.skip
# No `-Dfull``yet as `DROOLS_BUILD_MVN_OPTS` as it does not compile
BUILD_MVN_OPTS_QUARKUS_UPDATE: -Dfull
ids:
- quarkus
- quarkus3
quarkus-branch:
env_vars:
QUARKUS_BRANCH: '2.16'
DROOLS_BUILD_MVN_OPTS: -Dfull
ids:
- quarkus
quarkus-lts:
Expand All @@ -49,6 +57,7 @@ environments:
auto_generation: false
env_vars:
ENABLE_SONARCLOUD: true
DROOLS_BUILD_MVN_OPTS: -Dfull
ids:
- sonarcloud
- coverage
Expand Down
21 changes: 6 additions & 15 deletions .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ void setupProjectPostReleaseJob() {
///////////////////////////////////////////////////////////////////////////////////////////

Map getMultijobPRConfig(JenkinsFolder jobFolder) {
String defaultBuildMvnOptsCurrent = jobFolder.getDefaultEnvVarValue('BUILD_MVN_OPTS_CURRENT') ?: ''
def jobConfig = [
parallel: true,
buildchain: true,
Expand All @@ -147,8 +146,6 @@ Map getMultijobPRConfig(JenkinsFolder jobFolder) {
// Sonarcloud analysis only on main branch
// As we have only Community edition
ENABLE_SONARCLOUD: EnvUtils.isDefaultEnvironment(this, jobFolder.getEnvironmentName()) && Utils.isMainBranch(this),
// Setup full build if not prod profile
BUILD_MVN_OPTS_CURRENT: "${defaultBuildMvnOptsCurrent} ${EnvUtils.hasEnvironmentId(this, jobFolder.getEnvironmentName(), 'prod') || EnvUtils.hasEnvironmentId(this, jobFolder.getEnvironmentName(), 'quarkus3') ? '' : '-Dfull'}",
]
], [
id: 'kogito-runtimes',
Expand Down Expand Up @@ -196,21 +193,15 @@ KogitoJobUtils.createAllEnvironmentsPerRepoPRJobs(this) { jobFolder -> getMultij
createSetupBranchJob()

// Nightly jobs
Closure addFullProfileJobParamsGetter = { script ->
def jobParams = JobParamsUtils.DEFAULT_PARAMS_GETTER(script)
jobParams.env.put('BUILD_MVN_OPTS_CURRENT', '-Dfull')
return jobParams
}

KogitoJobUtils.createNightlyBuildChainBuildAndDeployJobForCurrentRepo(this, '', true, addFullProfileJobParamsGetter)
KogitoJobUtils.createNightlyBuildChainBuildAndDeployJobForCurrentRepo(this, '', true)

// Environment nightlies
setupSpecificBuildChainNightlyJob('native', addFullProfileJobParamsGetter)
setupSpecificBuildChainNightlyJob('sonarcloud', addFullProfileJobParamsGetter)
setupSpecificBuildChainNightlyJob('native')
setupSpecificBuildChainNightlyJob('sonarcloud')

// Jobs with integration branch
setupQuarkusIntegrationJob('quarkus-main', addFullProfileJobParamsGetter)
setupQuarkusIntegrationJob('quarkus-branch', addFullProfileJobParamsGetter)
setupQuarkusIntegrationJob('quarkus-main')
setupQuarkusIntegrationJob('quarkus-branch')
setupQuarkusIntegrationJob('quarkus-lts')
setupQuarkusIntegrationJob('native-lts')
// Quarkus 3 nightly is exported to Kogito pipelines for easier integration
Expand All @@ -228,7 +219,7 @@ KogitoJobUtils.createQuarkusUpdateToolsJob(this, 'drools', [

// Quarkus 3
if (EnvUtils.isEnvironmentEnabled(this, 'quarkus-3')) {
// setupPrQuarkus3RewriteJob() # TODO to enable if you want the PR quarkus-3 rewrite job
setupPrQuarkus3RewriteJob()
setupStandaloneQuarkus3RewriteJob()
}

Expand Down

0 comments on commit 21f43bc

Please sign in to comment.