Skip to content

Commit

Permalink
[10.0.x] NO-ISSUE: Missing KIE Sandbox Quarkus Accelerator Jenkins jo…
Browse files Browse the repository at this point in the history
…b and checksum files content fixes (#2596)
  • Loading branch information
rodrigonull committed Sep 17, 2024
1 parent 8310a4e commit b265cfe
Show file tree
Hide file tree
Showing 25 changed files with 264 additions and 91 deletions.
125 changes: 125 additions & 0 deletions .ci/jenkins/Jenkinsfile.release-candidate.quarkus-accelerator
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@Library('jenkins-pipeline-shared-libraries')_

pipeline {
agent {
docker {
image 'docker.io/apache/incubator-kie-tools-ci-build:10.0.999'
args '--shm-size=2g --privileged --group-add docker'
label util.avoidFaultyNodes()
}
}

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

parameters {
string(name: 'BRANCH_NAME', description: 'Set the Git branch to checkout (0.0.999)', trim: true)
string(name: 'RELEASE_VERSION', description: 'Release version', trim: true)
string(name: 'TAG_NAME', description: 'Tag name to be created', trim: true)
}

stages {
stage('Load local shared scripts') {
steps {
script {
pipelineVars = load '.ci/jenkins/shared-scripts/pipelineVars.groovy'
githubUtils = load '.ci/jenkins/shared-scripts/githubUtils.groovy'
}
}
}

stage('Clean workspace') {
steps {
cleanWs(deleteDirs: true, disableDeferredWipeout: true)
}
}

stage('Checkout kie-sandbox-quarkus-accelerator') {
steps {
dir('kie-sandbox-quarkus-accelerator') {
script {
githubUtils.checkoutRepo(
'http://github.com/apache/incubator-kie-sandbox-quarkus-accelerator.git',
"${params.BRANCH_NAME}",
"${pipelineVars.kieToolsBotGithubCredentialsId}"
)
}
}
}
}

stage('Setup Git repository') {
steps {
dir('kie-sandbox-quarkus-accelerator') {
script {
sh """#!/bin/bash -el
git config user.email [email protected]
git config user.name asf-ci-kie
git checkout ${params.BRANCH_NAME}
""".trim()
}
}
}
}

stage('Update kogito BOM version') {
steps {
dir('kie-sandbox-quarkus-accelerator') {
script {
sh """#!/bin/bash -el
mvn versions:set-property -Dproperty=kogito.bom.version -DnewVersion=${params.RELEASE_VERSION}
""".trim()
}
}
}
}

stage('Commit changes') {
steps {
dir('kie-sandbox-quarkus-accelerator') {
script {
sh """#!/bin/bash -el
git add .
git commit --allow-empty -am "Apache KIE ${params.RELEASE_VERSION} release"
""".trim()
}
}
}
}

stage('Create a new tag') {
steps {
dir('kie-sandbox-quarkus-accelerator') {
script {
githubUtils.createTag("${params.TAG_NAME}")
githubUtils.pushObject('origin', "${params.TAG_NAME}", "${pipelineVars.asfCIGithubCredentialsId}")
}
}
}
}
}

post {
always {
cleanWs(deleteDirs: true, disableDeferredWipeout: true)
}
}
}
14 changes: 8 additions & 6 deletions .ci/jenkins/release-jobs/Jenkinsfile.chrome-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,14 @@ pipeline {
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}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.CHROME_EXTENSION_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.SWF_CHROME_EXTENSION_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.SWF_CHROME_EXTENSION_EDITORS_RELEASE_ZIP_FILE}")
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.cors-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.dashbuilder-viewer-image
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,14 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_MAC_ARM64_RELEASE_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_MAC_X86_RELEASE_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_LINUX_X86_RELEASE_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_WINDOWS_X86_RELEASE_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_MAC_ARM64_RELEASE_FILE}")
releaseUtils.signArtifact("${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_MAC_X86_RELEASE_FILE}")
releaseUtils.signArtifact("${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_LINUX_X86_RELEASE_FILE}")
releaseUtils.signArtifact("${env.DEV_DEPLOYMENT_UPLOAD_SERVICE_WINDOWS_X86_RELEASE_FILE}")
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.extended-services
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${RELEASE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${RELEASE_TAR_FILE}")
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.kie-sandbox-helm-chart
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${RELEASE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${RELEASE_TAR_FILE}")
}
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions .ci/jenkins/release-jobs/Jenkinsfile.kn-plugin-workflow
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,14 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.KN_PLUGIN_LINUX_X86_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.KN_PLUGIN_MACOS_ARM_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.KN_PLUGIN_MACOS_X86_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.KN_PLUGIN_WINDOWS_X86_RELEASE_ZIP_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.KN_PLUGIN_LINUX_X86_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.KN_PLUGIN_MACOS_ARM_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.KN_PLUGIN_MACOS_X86_RELEASE_ZIP_FILE}")
releaseUtils.signArtifact("${env.KN_PLUGIN_WINDOWS_X86_RELEASE_ZIP_FILE}")
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
10 changes: 6 additions & 4 deletions .ci/jenkins/release-jobs/Jenkinsfile.kogito-serverless-operator
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_ZIP_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
releaseUtils.signArtifact("${env.RELEASE_ZIP_FILE}")
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-builder
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions .ci/jenkins/release-jobs/Jenkinsfile.kogito-swf-devmode
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,11 @@ pipeline {
expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
}
steps {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_ARTIFACTS_DIR}/${env.RELEASE_IMAGE_TAR_FILE}")
dir("${env.RELEASE_ARTIFACTS_DIR}") {
script {
releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
releaseUtils.signArtifact("${env.RELEASE_IMAGE_TAR_FILE}")
}
}
}
}
Expand Down
Loading

0 comments on commit b265cfe

Please sign in to comment.