Skip to content

Commit

Permalink
Update for quarkus-3 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins CI committed Jul 24, 2023
1 parent 948a448 commit 2fea820
Show file tree
Hide file tree
Showing 528 changed files with 1,471 additions and 1,479 deletions.
58 changes: 29 additions & 29 deletions .ci/buildchain-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,34 @@ build:
upstream: |
mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.DROOLS_BUILD_MVN_OPTS_UPSTREAM }}
- project: kiegroup/kogito-runtimes
build-command:
current: |
export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_RUNTIMES_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"`
mvn clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS }}
upstream: |
mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS_UPSTREAM }}
# - project: kiegroup/kogito-runtimes
# build-command:
# current: |
# export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_RUNTIMES_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"`
# mvn clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS }}
# upstream: |
# mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS_UPSTREAM }}

- project: kiegroup/kogito-apps
build-command:
current: |
export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_APPS_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"`
mvn clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_APPS_BUILD_MVN_OPTS }}
upstream: |
mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_APPS_BUILD_MVN_OPTS_UPSTREAM }}
archive-artifacts:
path: |
**/*.log
**/cypress/screenshots/**
**/cypress/videos/**
# - project: kiegroup/kogito-apps
# build-command:
# current: |
# export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_APPS_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"`
# mvn clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_APPS_BUILD_MVN_OPTS }}
# upstream: |
# mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_APPS_BUILD_MVN_OPTS_UPSTREAM }}
# archive-artifacts:
# path: |
# **/*.log
# **/cypress/screenshots/**
# **/cypress/videos/**

- project: kiegroup/kogito-examples
build-command:
# First install the main pom
# Then build the required submodule pom
current: |
export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_EXAMPLES_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"`
mvn -pl :kogito-examples clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS }}
mvn -f ${{ env.KOGITO_EXAMPLES_SUBFOLDER_POM }}pom.xml clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS }}
upstream: |
mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS_UPSTREAM }}
# - project: kiegroup/kogito-examples
# build-command:
# # First install the main pom
# # Then build the required submodule pom
# current: |
# export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_EXAMPLES_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"`
# mvn -pl :kogito-examples clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS }}
# mvn -f ${{ env.KOGITO_EXAMPLES_SUBFOLDER_POM }}pom.xml clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS }}
# upstream: |
# mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS_UPSTREAM }}
92 changes: 46 additions & 46 deletions .ci/buildchain-project-dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,51 @@ dependencies:
- source: (\d*)\.(.*)\.(.*)
targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)"

- project: kiegroup/kogito-runtimes
dependencies:
- project: kiegroup/drools
mapping:
dependencies:
default:
- source: (\d*)\.(.*)\.(.*)
targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)"
dependant:
default:
- source: (\d*)\.(.*)\.(.*)
targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)"
exclude:
- kiegroup/kogito-examples
- kiegroup/kogito-apps
# - project: kiegroup/kogito-runtimes
# dependencies:
# - project: kiegroup/drools
# mapping:
# dependencies:
# default:
# - source: (\d*)\.(.*)\.(.*)
# targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)"
# dependant:
# default:
# - source: (\d*)\.(.*)\.(.*)
# targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)"
# exclude:
# - kiegroup/kogito-examples
# - kiegroup/kogito-apps

- project: kiegroup/kogito-apps
dependencies:
- project: kiegroup/kogito-runtimes
mapping:
dependencies:
default:
- source: (\d*)\.(.*)\.(.*)
targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)"
dependant:
default:
- source: (\d*)\.(.*)\.(.*)
targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)"
exclude:
- kiegroup/kogito-examples
- kiegroup/kogito-runtimes
# - project: kiegroup/kogito-apps
# dependencies:
# - project: kiegroup/kogito-runtimes
# mapping:
# dependencies:
# default:
# - source: (\d*)\.(.*)\.(.*)
# targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)"
# dependant:
# default:
# - source: (\d*)\.(.*)\.(.*)
# targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)"
# exclude:
# - kiegroup/kogito-examples
# - kiegroup/kogito-runtimes

- project: kiegroup/kogito-examples
dependencies:
- project: kiegroup/kogito-runtimes
- project: kiegroup/kogito-apps
mapping:
dependencies:
default:
- source: (\d*)\.(.*)\.(.*)
targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)"
dependant:
default:
- source: (\d*)\.(.*)\.(.*)
targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)"
exclude:
- kiegroup/kogito-apps
- kiegroup/kogito-runtimes
# - project: kiegroup/kogito-examples
# dependencies:
# - project: kiegroup/kogito-runtimes
# - project: kiegroup/kogito-apps
# mapping:
# dependencies:
# default:
# - source: (\d*)\.(.*)\.(.*)
# targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)"
# dependant:
# default:
# - source: (\d*)\.(.*)\.(.*)
# targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)"
# exclude:
# - kiegroup/kogito-apps
# - kiegroup/kogito-runtimes
88 changes: 47 additions & 41 deletions .ci/jenkins/dsl/jobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void createProjectSetupBranchJob() {

void setupProjectNightlyJob() {
def jobParams = JobParamsUtils.getBasicJobParams(this, '0-nightly', JobType.NIGHTLY, "${jenkins_path_project}/Jenkinsfile.nightly", 'Drools Nightly')
jobParams.triggers = [cron : '@midnight']
jobParams.triggers = [cron : 'H 3 * * *']
jobParams.env.putAll([
JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}",

Expand Down Expand Up @@ -120,7 +120,7 @@ void setupProjectPostReleaseJob() {
///////////////////////////////////////////////////////////////////////////////////////////

Map getMultijobPRConfig(JenkinsFolder jobFolder) {
String defaultBuildMvnOptsCurrent = jobFolder.getDefaultEnvVarValue('BUILD_MVN_OPTS_CURRENT') ?: ''
// String defaultBuildMvnOptsCurrent = jobFolder.getDefaultEnvVarValue('BUILD_MVN_OPTS_CURRENT') ?: ''
def jobConfig = [
parallel: true,
buildchain: true,
Expand All @@ -133,35 +133,35 @@ Map getMultijobPRConfig(JenkinsFolder jobFolder) {
// 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'}",
// BUILD_MVN_OPTS_CURRENT: "${defaultBuildMvnOptsCurrent} ${EnvUtils.hasEnvironmentId(this, jobFolder.getEnvironmentName(), 'prod') || EnvUtils.hasEnvironmentId(this, jobFolder.getEnvironmentName(), 'quarkus3') ? '' : '-Dfull'}",
]
], [
id: 'kogito-runtimes',
repository: 'kogito-runtimes'
], [
id: 'kogito-apps',
repository: 'kogito-apps',
env : [
NODE_OPTIONS: '--max_old_space_size=4096',
]
], [
id: 'kogito-quarkus-examples',
repository: 'kogito-examples',
env : [
KOGITO_EXAMPLES_SUBFOLDER_POM: 'kogito-quarkus-examples/',
],
], [
id: 'kogito-springboot-examples',
repository: 'kogito-examples',
env : [
KOGITO_EXAMPLES_SUBFOLDER_POM: 'kogito-springboot-examples/',
],
], [
id: 'serverless-workflow-examples',
repository: 'kogito-examples',
env : [
KOGITO_EXAMPLES_SUBFOLDER_POM: 'serverless-workflow-examples/',
],
// ], [
// id: 'kogito-runtimes',
// repository: 'kogito-runtimes'
// ], [
// id: 'kogito-apps',
// repository: 'kogito-apps',
// env : [
// NODE_OPTIONS: '--max_old_space_size=4096',
// ]
// ], [
// id: 'kogito-quarkus-examples',
// repository: 'kogito-examples',
// env : [
// KOGITO_EXAMPLES_SUBFOLDER_POM: 'kogito-quarkus-examples/',
// ],
// ], [
// id: 'kogito-springboot-examples',
// repository: 'kogito-examples',
// env : [
// KOGITO_EXAMPLES_SUBFOLDER_POM: 'kogito-springboot-examples/',
// ],
// ], [
// id: 'serverless-workflow-examples',
// repository: 'kogito-examples',
// env : [
// KOGITO_EXAMPLES_SUBFOLDER_POM: 'serverless-workflow-examples/',
// ],
]
]
]
Expand All @@ -187,17 +187,23 @@ Closure addFullProfileJobParamsGetter = { script ->
return jobParams
}

KogitoJobUtils.createNightlyBuildChainBuildAndDeployJobForCurrentRepo(this, '', true, addFullProfileJobParamsGetter)
Closure setup3AMCronTriggerJobParamsGetter = { script ->
def jobParams = JobParamsUtils.DEFAULT_PARAMS_GETTER(script)
jobParams.triggers = [ cron: 'H 3 * * *' ]
return jobParams
}

KogitoJobUtils.createNightlyBuildChainBuildAndDeployJobForCurrentRepo(this, '', true)

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

// Jobs with integration branch
setupQuarkusIntegrationJob('quarkus-main', addFullProfileJobParamsGetter)
setupQuarkusIntegrationJob('quarkus-branch', addFullProfileJobParamsGetter)
setupQuarkusIntegrationJob('quarkus-lts')
setupQuarkusIntegrationJob('native-lts')
setupQuarkusIntegrationJob('quarkus-main', setup3AMCronTriggerJobParamsGetter)
setupQuarkusIntegrationJob('quarkus-branch', setup3AMCronTriggerJobParamsGetter)
// setupQuarkusIntegrationJob('quarkus-lts')
// setupQuarkusIntegrationJob('native-lts')
// Quarkus 3 nightly is exported to Kogito pipelines for easier integration

// Release jobs
Expand All @@ -212,10 +218,10 @@ 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
setupStandaloneQuarkus3RewriteJob()
}
// if (EnvUtils.isEnvironmentEnabled(this, 'quarkus-3')) {
// // setupPrQuarkus3RewriteJob() # TODO to enable if you want the PR quarkus-3 rewrite job
// setupStandaloneQuarkus3RewriteJob()
// }

/////////////////////////////////////////////////////////////////
// Methods
Expand Down
2 changes: 1 addition & 1 deletion bom/drools-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kie</groupId>
<artifactId>kie-core-bom</artifactId>
<version>8.42.0-SNAPSHOT</version>
<version>9.42.0-SNAPSHOT</version>
<relativePath>../kie-core-bom/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bom/kie-core-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kie</groupId>
<artifactId>drools-parent</artifactId>
<version>8.42.0-SNAPSHOT</version>
<version>9.42.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bom/kie-dmn-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kie</groupId>
<artifactId>kie-core-bom</artifactId>
<version>8.42.0-SNAPSHOT</version>
<version>9.42.0-SNAPSHOT</version>
<relativePath>../kie-core-bom/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bom/kie-efesto-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kie</groupId>
<artifactId>kie-core-bom</artifactId>
<version>8.42.0-SNAPSHOT</version>
<version>9.42.0-SNAPSHOT</version>
<relativePath>../kie-core-bom/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bom/kie-pmml-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kie</groupId>
<artifactId>kie-core-bom</artifactId>
<version>8.42.0-SNAPSHOT</version>
<version>9.42.0-SNAPSHOT</version>
<relativePath>../kie-core-bom/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>drools-parent</artifactId>
<groupId>org.kie</groupId>
<version>8.42.0-SNAPSHOT</version>
<version>9.42.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Loading

0 comments on commit 2fea820

Please sign in to comment.