Skip to content

Commit

Permalink
NO-ISSUE: Release jobs adjustments and fixes (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonull authored Oct 9, 2024
1 parent 1183602 commit b53193a
Show file tree
Hide file tree
Showing 10 changed files with 408 additions and 127 deletions.
7 changes: 4 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.extended-services
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ pipeline {
}
steps {
script {
env.RELEASE_TAR_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-sandbox-extended-services-linux-x86.tar.gz"
env.RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-sandbox-extended-services-linux-x86.zip"

sh """#!/bin/bash -el
mkdir ${env.RELEASE_ARTIFACTS_DIR}
cp kie-tools/packages/extended-services/dist/linux/kie_sandbox_extended_services.tar.gz "${env.RELEASE_ARTIFACTS_DIR}/${RELEASE_TAR_FILE}"
cd kie-tools/packages/extended-services/dist/linux
zip "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_ZIP_FILE}" ./kie_sandbox_extended_services
""".trim()
}
}
Expand All @@ -158,7 +159,7 @@ pipeline {
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${RELEASE_TAR_FILE}")
releaseUtils.signArtifact("${RELEASE_ZIP_FILE}")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions .ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pipeline {

stage('Push kie-sandbox-image to Docker Hub') {
when {
expression { !params.DRY_RUN }
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION == '' }
}
steps {
script {
Expand Down Expand Up @@ -217,7 +217,7 @@ pipeline {

sh """#!/bin/bash -el
mkdir ${env.RELEASE_ARTIFACTS_DIR}
docker save "${env.KIE_SANDBOX__imageRegistry}/${env.KIE_SANDBOX__imageAccount}/${env.KIE_SANDBOX__imageName}:${params.RELEASE_VERSION}" | gzip > "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}"
docker save "${env.KIE_SANDBOX_WEBAPP_IMAGE__imageRegistry}/${env.KIE_SANDBOX_WEBAPP_IMAGE__imageAccount}/${env.KIE_SANDBOX_WEBAPP_IMAGE__imageName}:${params.RELEASE_VERSION}" | gzip > "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}"
""".trim()
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/release-jobs/Jenkinsfile.kn-plugin-workflow
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
defaultSettingsFile = 'packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/settings.xml'
defaultSettingsFile = 'packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/maven-m2-repo-via-http-settings.xml.envsubst'
sh """#!/bin/bash -el
rm -rf "${defaultSettingsFile}"
cp "${env.MAVEN_SETTINGS_PATH}" "${defaultSettingsFile}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
defaultSettingsFile = 'packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/settings.xml'
defaultSettingsFile = 'packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/maven-m2-repo-via-http-settings.xml.envsubst'
sh """#!/bin/bash -el
rm -rf "${defaultSettingsFile}"
cp "${env.MAVEN_SETTINGS_PATH}" "${defaultSettingsFile}"
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-builder
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ pipeline {

sh """#!/bin/bash -el
mkdir ${env.RELEASE_ARTIFACTS_DIR}
docker save "${env.KOGITO_SWF_BUILDER_IMAGE__registry}/${env.KOGITO_SWF_BUILDER_IMAGE__account}/${env.KOGITO_SWF_BUILDER_IMAGE__name}:${params.RELEASE_VERSION}" | gzip > "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}"
docker save "${env.SONATAFLOW_BUILDER_IMAGE__registry}/${env.SONATAFLOW_BUILDER_IMAGE__account}/${env.SONATAFLOW_BUILDER_IMAGE__name}:${params.RELEASE_VERSION}" | gzip > "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}"
""".trim()
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-devmode
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ pipeline {

sh """#!/bin/bash -el
mkdir ${env.RELEASE_ARTIFACTS_DIR}
docker save "${env.KOGITO_SWF_DEVMODE_IMAGE__registry}/${env.KOGITO_SWF_DEVMODE_IMAGE__account}/${env.KOGITO_SWF_DEVMODE_IMAGE__name}:${params.RELEASE_VERSION}" | gzip > "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}"
docker save "${env.SONATAFLOW_DEVMODE_IMAGE__registry}/${env.SONATAFLOW_DEVMODE_IMAGE__account}/${env.SONATAFLOW_DEVMODE_IMAGE__name}:${params.RELEASE_VERSION}" | gzip > "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}"
""".trim()
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/release-jobs/Jenkinsfile.npm-packages
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pipeline {
}

options {
timeout(time: 180, unit: 'MINUTES')
timeout(time: 240, unit: 'MINUTES')
}

parameters {
Expand Down
9 changes: 6 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.online-editor
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,12 @@ pipeline {
}
steps {
script {
env.RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-sandbox-webapp.zip"
env.ONLINE_EDITOR_RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-sandbox-webapp.zip"
env.STUNNER_EDITORS_RELEASE_ZIP_FILE = "incubator-kie-${params.RELEASE_CANDIDATE_VERSION}-stunner-editors.zip"
sh """#!/bin/bash -el
mkdir ${env.RELEASE_ARTIFACTS_DIR}
cd kie-tools/packages/online-editor/dist && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_ZIP_FILE}" .
cd "${WORKSPACE}/kie-tools/packages/online-editor/dist" && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.ONLINE_EDITOR_RELEASE_ZIP_FILE}" .
cd "${WORKSPACE}/kie-tools/packages/stunner-editors/dist" && zip -r "${env.RELEASE_ARTIFACTS_DIR}/${env.STUNNER_EDITORS_RELEASE_ZIP_FILE}" .
""".trim()
}
}
Expand All @@ -217,7 +219,8 @@ pipeline {
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.ONLINE_EDITOR_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.STUNNER_EDITORS_RELEASE_ZIP_FILE}")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pipeline {
steps {
dir('kie-tools') {
script {
defaultSettingsFile = 'packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/settings.xml'
defaultSettingsFile = 'packages/sonataflow-image-common/resources/modules/kogito-maven/common/maven/maven-m2-repo-via-http-settings.xml.envsubst'
sh """#!/bin/bash -el
rm -rf "${defaultSettingsFile}"
cp "${env.MAVEN_SETTINGS_PATH}" "${defaultSettingsFile}"
Expand Down
Loading

0 comments on commit b53193a

Please sign in to comment.