Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SRVLOGIC-285] add swf-devmode and swf-builder images as part of OSL productized nightly #36

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion .ci/jenkins/Jenkinsfile.prod.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,16 @@ pipeline {
env.DATA_INDEX_POSTGRESQL = 'data-index-postgresql'
env.JOBS_SERVICE_EPHEMERAL = 'jobs-service-ephemeral'
env.JOBS_SERVICE_POSTGRESQL = 'jobs-service-postgresql'
env.SWF_BUILDER = 'swf-builder'
env.SWF_DEVMODE = 'swf-devmode'

// Images registries placeholders
env.DATA_INDEX_EPHEMERAL_REGISTRY = ''
env.DATA_INDEX_POSTGRESQL_REGISTRY = ''
env.JOBS_SERVICE_EPHEMERAL_REGISTRY = ''
env.JOBS_SERVICE_POSTGRESQL_REGISTRY = ''
env.SWF_BUILDER_REGISTRY = ''
env.SWF_DEVMODE_REGISTRY = ''
}
}
}
Expand Down Expand Up @@ -163,6 +167,32 @@ pipeline {
}
}
}
stage('SWF Builder image') {
steps {
script {
def descriptorFile = 'prod-logic-swf-builder-rhel8-image.yaml'
// Map with artifact path required in image module.yaml and the name in module.yaml
def artifacts = ["${env.M2_FOLDER}/org/kie/kogito/kogito-builder-quarkus-app/${env.ARTIFACTS_VERSION}/kogito-builder-quarkus-app-${env.ARTIFACTS_VERSION}-image-build.zip": "kogito-builder-quarkus-app-image-build.zip",
"${env.M2_FOLDER}/org/kie/kogito/kogito-builder-maven-repository/${env.ARTIFACTS_VERSION}/kogito-builder-maven-repository-${env.ARTIFACTS_VERSION}-image-build.zip": "kogito-builder-maven-repository-image-build.zip"
]

env.SWF_BUILDER_REGISTRY = buildImage(env.SWF_BUILDER, descriptorFile, env.NIGHTLY_BRANCH_NAME, artifacts, env.IMAGES_REPOSITORY_PATH)
}
}
}
stage('SWF Devmode image') {
steps {
script {
def descriptorFile = 'prod-logic-swf-devmode-rhel8-image.yaml'
// Map with artifact path required in image module.yaml and the name in module.yaml
def artifacts = ["${env.M2_FOLDER}/org/kie/kogito/kogito-devmode-quarkus-app/${env.ARTIFACTS_VERSION}/kogito-devmode-quarkus-app-${env.ARTIFACTS_VERSION}-image-build.zip": "kogito-devmode-quarkus-app-image-build.zip",
"${env.M2_FOLDER}/org/kie/kogito/kogito-devmode-maven-repository/${env.ARTIFACTS_VERSION}/kogito-devmode-maven-repository-${env.ARTIFACTS_VERSION}-image-build.zip": "kogito-devmode-maven-repository-image-build.zip"
]

env.SWF_DEVMODE_REGISTRY = buildImage(env.SWF_DEVMODE, descriptorFile, env.NIGHTLY_BRANCH_NAME, artifacts, env.IMAGES_REPOSITORY_PATH)
}
}
}
}
}
stage('Upload maven repository') {
Expand Down Expand Up @@ -221,7 +251,8 @@ pipeline {
mavenRepositoryFileUrl,
env.ALREADY_BUILT_PROJECTS,
['serverlesslogic': env['VERSION_kiegroup_kogito-runtimes'], 'serverlesslogic-rhba': env['VERSION_kiegroup_kogito-runtimes'], 'drools': env.VERSION_kiegroup_drools, 'platform.quarkus.bom': env.QUARKUS_PLATFORM_VERSION, 'quarkus.bom': env.QUARKUS_VERSION],
["${env.DATA_INDEX_EPHEMERAL}": env.DATA_INDEX_EPHEMERAL_REGISTRY, "${env.DATA_INDEX_POSTGRESQL}": env.DATA_INDEX_POSTGRESQL_REGISTRY, "${env.JOBS_SERVICE_EPHEMERAL}": env.JOBS_SERVICE_EPHEMERAL_REGISTRY, "${JOBS_SERVICE_POSTGRESQL}": env.JOBS_SERVICE_POSTGRESQL_REGISTRY],
["${env.DATA_INDEX_EPHEMERAL}": env.DATA_INDEX_EPHEMERAL_REGISTRY, "${env.DATA_INDEX_POSTGRESQL}": env.DATA_INDEX_POSTGRESQL_REGISTRY, "${env.JOBS_SERVICE_EPHEMERAL}": env.JOBS_SERVICE_EPHEMERAL_REGISTRY, "${JOBS_SERVICE_POSTGRESQL}": env.JOBS_SERVICE_POSTGRESQL_REGISTRY,
"${env.SWF_BUILDER}": env.SWF_BUILDER_REGISTRY, "${env.SWF_DEVMODE}": env.SWF_DEVMODE_REGISTRY],
gitHashesToCollection(env.GIT_INFORMATION_HASHES)
)
echo "[INFO] Message Body: ${messageBody}"
Expand Down
Loading