Skip to content

Commit

Permalink
[10.0.x] NO-ISSUE: Release job updates and fixes for Apache 10 release (
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonull committed Sep 17, 2024
1 parent b4507c2 commit 8310a4e
Show file tree
Hide file tree
Showing 38 changed files with 1,309 additions and 872 deletions.
886 changes: 458 additions & 428 deletions .ci/jenkins/Jenkinsfile.release-build

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions .ci/jenkins/Jenkinsfile.release-candidate
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pipeline {
string(name: 'BRANCH_NAME', description: 'Set the Git branch to checkout (0.0.x)', trim: true)
string(name: 'RELEASE_VERSION', description: 'Release version', trim: true)
string(name: 'TAG_NAME', description: 'Tag name to be created', trim: true)
string(description: 'Runners', name: 'RUNNERS', defaultValue: '{"chrome_extensions":"true","cors_proxy_image":"true","dashbuilder_viewer_image":"true","dev_deployment_base_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_upload_service":"true","extended_services":"true","jbpm_quarkus_devui":"true","kie_sandbox_extended_services_image":"true","kie_sandbox_helm_chart":"true","kie_sandbox_image":"true","kn_plugin_workflow":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_swf_devmode":"true","kogito_serverless_operator":"true","npm_packages":"true","online_editor":"true","runtime_tools_consoles_helm_chart":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","standalone_editors_cdn":"true","sonataflow_quarkus_devui":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true"}')
}

stages {
Expand Down Expand Up @@ -71,7 +72,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
buildUtils.setupPnpm()
buildUtils.setupPnpm("${pipelineVars.mavenSettingsConfigFileId}")
}
}
}
Expand All @@ -81,7 +82,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
buildUtils.pnpmBootstrap("${env.PNPM_FILTER_STRING}")
buildUtils.pnpmBootstrap()
}
}
}
Expand Down Expand Up @@ -131,7 +132,7 @@ pipeline {
}
}

stage('Commit and Push changes') {
stage('Commit changes') {
steps {
dir('kie-tools') {
script {
Expand Down Expand Up @@ -172,11 +173,9 @@ pipeline {
steps {
build job: 'KIE/kie-tools/kie-tools-release-build', parameters: [
booleanParam(name: 'DRY_RUN', value: false),
string(name: 'BASE_REF', value: "${env.BRANCH_NAME}"),
string(name: 'BASE_REF', value: "${env.TAG_NAME}"),
string(name: 'RELEASE_VERSION', value: "${params.RELEASE_VERSION}"),
string(name: 'UPLOAD_ASSET_URL', value: "${env.RELEASE_UPLOAD_ASSET_URL}"),
string(name: 'RUNNERS', value: "${params.RUNNERS}"),
booleanParam(name: 'RELEASE_CANDIDATE', value: true),
string(name: 'RELEASE_CANDIDATE_VERSION', value: "${TAG_NAME}")
]
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.release-dry-run
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pipeline {
build job: 'KIE/kie-tools/kie-tools-release-build', parameters: [
booleanParam(name: 'DRY_RUN', value: true),
string(name: 'BASE_REF', value: 'main'),
string(name: 'RUNNERS', value: '{"dev_deployment_base_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_upload_service":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true","kie_sandbox_helm_chart":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_swf_devmode":"true","kogito_serverless_operator":"true","jbpm_quarkus_devui":"false","sonataflow_quarkus_devui":"false","runtime_tools_consoles_helm_chart":"false"}')
string(name: 'RUNNERS', value: '{"chrome_extensions":"true","cors_proxy_image":"true","dashbuilder_viewer_image":"true","dev_deployment_base_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_upload_service":"true","extended_services":"true","jbpm_quarkus_devui":"true","kie_sandbox_extended_services_image":"true","kie_sandbox_helm_chart":"true","kie_sandbox_image":"true","kn_plugin_workflow":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_swf_devmode":"true","kogito_serverless_operator":"true","npm_packages":"true","online_editor":"true","runtime_tools_consoles_helm_chart":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","standalone_editors_cdn":"true","sonataflow_quarkus_devui":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true"}')
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.release-publish
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pipeline {

parameters {
string(description: 'Release Version', name: 'RELEASE_VERSION', defaultValue: '0.0.0')
string(description: 'Runners', name: 'RUNNERS', defaultValue: '{"dev_deployment_base_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_upload_service":"true","kie_sandbox_image":"true","kie_sandbox_extended_services_image":"true","cors_proxy_image":"true","online_editor":"true","chrome_extensions":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true","npm_packages":"true","standalone_editors_cdn":"true","extended_services":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","dashbuilder_viewer_image":"true","kn_plugin_workflow":"true","kie_sandbox_helm_chart":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_serverless_operator":"true","jbpm_quarkus_devui":"true","sonataflow_quarkus_devui":"true","runtime_tools_consoles_helm_chart":"true"}')
string(description: 'Runners', name: 'RUNNERS', defaultValue: '{"chrome_extensions":"true","cors_proxy_image":"true","dashbuilder_viewer_image":"true","dev_deployment_base_image":"true","dev_deployment_dmn_form_webapp_image":"true","dev_deployment_kogito_quakus_blank_app_image":"true","dev_deployment_upload_service":"true","extended_services":"true","jbpm_quarkus_devui":"true","kie_sandbox_extended_services_image":"true","kie_sandbox_helm_chart":"true","kie_sandbox_image":"true","kn_plugin_workflow":"true","kogito_task_console":"true","kogito_management_console":"true","kogito_swf_builder":"true","kogito_swf_devmode":"true","kogito_serverless_operator":"true","npm_packages":"true","online_editor":"true","runtime_tools_consoles_helm_chart":"true","serverless_logic_web_tools":"true","serverless_logic_web_tools_base_builder_image":"true","serverless_logic_web_tools_swf_builder_image":"true","serverless_logic_web_tools_swf_dev_mode_image":"true","standalone_editors_cdn":"true","sonataflow_quarkus_devui":"true","vscode_extensions_dev":"true","vscode_extensions_prod":"true"}')
}

stages {
Expand Down
46 changes: 28 additions & 18 deletions .ci/jenkins/release-jobs/Jenkinsfile.chrome-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ pipeline {
string(description: 'Release Version', name: 'RELEASE_VERSION', defaultValue: '0.0.0')
string(description: 'Base Ref', name: 'BASE_REF')
string(description: 'Upload Asset Url', name: 'UPLOAD_ASSET_URL')
booleanParam(description: 'Release Candidate', name: 'RELEASE_CANDIDATE', defaultValue: false)
string(description: 'Release Candidate Version', name: 'RELEASE_CANDIDATE_VERSION', defaultValue: '')
}

Expand Down Expand Up @@ -63,6 +62,7 @@ pipeline {
githubUtils = load '.ci/jenkins/shared-scripts/githubUtils.groovy'
chromeStoreUtils = load '.ci/jenkins/shared-scripts/chromeStoreUtils.groovy'
releaseUtils = load '.ci/jenkins/shared-scripts/releaseUtils.groovy'
zipUtils = load '.ci/jenkins/shared-scripts/zipUtils.groovy'
}
}
}
Expand Down Expand Up @@ -113,7 +113,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
buildUtils.setupPnpm()
buildUtils.setupPnpm("${pipelineVars.mavenSettingsConfigFileId}")
}
}
}
Expand Down Expand Up @@ -141,7 +141,7 @@ pipeline {

stage('Upload Chrome Extension for Kogito KIE Editors') {
when {
expression { !params.DRY_RUN }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
script {
Expand All @@ -158,7 +158,7 @@ pipeline {

stage('Deploy Chrome Extension for KIE Editors to GitHub Pages (kogito-online)') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
dir('kogito-online') {
Expand Down Expand Up @@ -193,7 +193,7 @@ pipeline {

stage('Upload Chrome Extension for KIE Editors to the Chrome Store') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
script {
Expand All @@ -209,7 +209,7 @@ pipeline {

stage('Check Upload - Chrome Extension for KIE Editors') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
sh """#!/bin/bash -el
Expand All @@ -220,7 +220,7 @@ pipeline {

stage('Publish Chrome Extension for KIE Editors for users') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
script {
Expand All @@ -235,7 +235,7 @@ pipeline {

stage('Check Publish - Chrome Extension for KIE Editors') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
sh """#!/bin/bash -el
Expand All @@ -246,7 +246,7 @@ pipeline {

stage('Upload Chrome Extension for Serverless Workflow Editor') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
script {
Expand All @@ -263,7 +263,7 @@ pipeline {

stage('Deploy Chrome Extension for Serverless Workflow Editor to GitHub Pages (kogito-online)') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
dir('kogito-online') {
Expand Down Expand Up @@ -294,7 +294,7 @@ pipeline {

stage('Upload Chrome Extension for Serverless Workflow Editor to the Chrome Store') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
script {
Expand All @@ -310,7 +310,7 @@ pipeline {

stage('Check Upload - Chrome Extension for Serverless Workflow Editor') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
sh """#!/bin/bash -el
Expand All @@ -321,7 +321,7 @@ pipeline {

stage('Publish Chrome Extension for Serverless Workflow Editor for users') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
script {
Expand All @@ -336,7 +336,7 @@ pipeline {

stage('Check Publish - Chrome Extension for Serverless Workflow Editor') {
when {
expression { !params.DRY_RUN && !params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
sh """#!/bin/bash -el
Expand All @@ -347,38 +347,48 @@ pipeline {

stage('Setup release candidate artifacts') {
when {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
env.CHROME_EXTENSION_RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-business-automation-chrome-extension.zip"
env.SWF_CHROME_EXTENSION_RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-sonataflow-chrome-extension.zip"
env.CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-business-automation-chrome-extension-editors.zip"
env.SWF_CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-sonataflow-chrome-extension-editors.zip"

sh """#!/bin/bash -el
mkdir ${env.RELEASE_ARTIFACTS_DIR}
mkdir -p ${env.RELEASE_ARTIFACTS_DIR}/{business-automation-chrome-extension-editors,sonataflow-chrome-extension-editors}
cp -r kie-tools/packages/chrome-extension-pack-kogito-kie-editors/dist/{fonts,*-envelope.*} "${env.RELEASE_ARTIFACTS_DIR}/business-automation-chrome-extension-editors"
cp -r kie-tools/packages/chrome-extension-serverless-workflow-editor/dist/{fonts,diagram,*-envelope.*,*.bundle.js,*.worker.js} "${env.RELEASE_ARTIFACTS_DIR}/sonataflow-chrome-extension-editors"
cp "kie-tools/packages/chrome-extension-pack-kogito-kie-editors/dist/chrome_extension_kogito_kie_editors_${params.RELEASE_VERSION}.zip" "${env.RELEASE_ARTIFACTS_DIR}/${CHROME_EXTENSION_RELEASE_ZIP_FILE}"
cp "kie-tools/packages/chrome-extension-serverless-workflow-editor/dist/chrome_extension_serverless_workflow_editor_${params.RELEASE_VERSION}.zip" "${env.RELEASE_ARTIFACTS_DIR}/${SWF_CHROME_EXTENSION_RELEASE_ZIP_FILE}"
cd "${env.RELEASE_ARTIFACTS_DIR}/business-automation-chrome-extension-editors" && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE}" .
cd "${env.RELEASE_ARTIFACTS_DIR}/sonataflow-chrome-extension-editors" && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.SWF_CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE}" .
rm -rf "${env.RELEASE_ARTIFACTS_DIR}/business-automation-chrome-extension-editors"
rm -rf "${env.RELEASE_ARTIFACTS_DIR}/sonataflow-chrome-extension-editors"
""".trim()
}
}
}

stage('Sign artifacts for Apache release') {
when {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.CHROME_EXTENSION_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.SWF_CHROME_EXTENSION_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.SWF_CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE}")
}
}
}

stage('Publish Release Candidate artifacts') {
when {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
Expand Down
Loading

0 comments on commit 8310a4e

Please sign in to comment.