This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 9d9b3fe7a8b NO-ISSUE: KIE Sandbox Quarkus Accelerator setup branch 
Jenkins job (#2337)
9d9b3fe7a8b is described below

commit 9d9b3fe7a8b2d7d6349310ba3f7edb9e97e1e4eb
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon May 20 11:59:00 2024 -0300

    NO-ISSUE: KIE Sandbox Quarkus Accelerator setup branch Jenkins job (#2337)
---
 .ci/jenkins/Jenkinsfile.setup-branch               |  4 +-
 ...> Jenkinsfile.setup-branch.quarkus-accelerator} | 91 ++++------------------
 2 files changed, 15 insertions(+), 80 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.setup-branch 
b/.ci/jenkins/Jenkinsfile.setup-branch
index 5a79d3814f3..9a330f01dff 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -31,7 +31,7 @@ pipeline {
     }
 
     parameters {
-        string(name: 'CHECKOUT_BRANCH_NAME', defaultValue: 'main' description: 
'Set the Git branch to checkout', trim: true)
+        string(name: 'CHECKOUT_BRANCH_NAME', defaultValue: 'main', 
description: 'Set the Git branch to checkout', trim: true)
         string(name: 'NEW_BRANCH_NAME', description: 'Set the Git branch to be 
created', trim: true)
         string(name: 'KIE_TOOLS_VERSION', description: 'KIE Tools version to 
set', trim: true)
         string(name: 'KOGITO_MAVEN_VERSION', description: 'Kogito maven 
version to set', trim: true)
@@ -150,7 +150,7 @@ pipeline {
                 dir('kie-tools/.ci/jenkins') {
                     script {
                         sh """#!/bin/bash -el
-                        find . -type f -name 'Jenkinsfile.*' -exec sed -E -i 
"s%(kie-tools-ci-build:).*%\1${params.KIE_TOOLS_VERSION}% {} \;"
+                        find . -type f -name 'Jenkinsfile.*' -exec sed -E -i 
"s%(kie-tools-ci-build:).*%\\1${params.KIE_TOOLS_VERSION}'%" {} \\;
                         """.trim()
                     }
                 }
diff --git a/.ci/jenkins/Jenkinsfile.setup-branch 
b/.ci/jenkins/Jenkinsfile.setup-branch.quarkus-accelerator
similarity index 52%
copy from .ci/jenkins/Jenkinsfile.setup-branch
copy to .ci/jenkins/Jenkinsfile.setup-branch.quarkus-accelerator
index 5a79d3814f3..6d66dfbc071 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch.quarkus-accelerator
@@ -31,11 +31,9 @@ pipeline {
     }
 
     parameters {
-        string(name: 'CHECKOUT_BRANCH_NAME', defaultValue: 'main' description: 
'Set the Git branch to checkout', trim: true)
-        string(name: 'NEW_BRANCH_NAME', description: 'Set the Git branch to be 
created', trim: true)
-        string(name: 'KIE_TOOLS_VERSION', description: 'KIE Tools version to 
set', trim: true)
-        string(name: 'KOGITO_MAVEN_VERSION', description: 'Kogito maven 
version to set', trim: true)
-        string(name: 'KOGITO_IMAGES_TAG', description: 'Kogito images tag to 
set', trim: true)
+        string(name: 'CHECKOUT_BRANCH_NAME', defaultValue: '0.0.0', 
description: 'Set the Git branch to checkout', trim: true)
+        string(name: 'NEW_BRANCH_NAME', description: 'Set the Git branch to be 
created. (x.x.999)', trim: true)
+        string(name: 'KOGITO_VERSION', description: 'Kogito version to set', 
trim: true)
     }
 
     stages {
@@ -43,32 +41,23 @@ pipeline {
             steps {
                 script {
                     pipelineVars = load 
'.ci/jenkins/shared-scripts/pipelineVars.groovy'
-                    buildUtils = load 
'.ci/jenkins/shared-scripts/buildUtils.groovy'
                     githubUtils = load 
'.ci/jenkins/shared-scripts/githubUtils.groovy'
                 }
             }
         }
 
-        stage('Initialize') {
-            steps {
-                script {
-                    currentBuild.displayName = params.KIE_TOOLS_VERSION
-                }
-            }
-        }
-
-        stage('Clean workspace before build') {
+        stage('Clean workspace') {
             steps {
                 cleanWs(deleteDirs: true, disableDeferredWipeout: true)
             }
         }
 
-        stage('Checkout kie-tools') {
+        stage('Checkout kie-sandbox-quarkus-accelerator') {
             steps {
-                dir('kie-tools') {
+                dir('kie-sandbox-quarkus-accelerator') {
                     script {
                         githubUtils.checkoutRepo(
-                            
"http://github.com/${pipelineVars.githubRepositorySlug}.git";,
+                            
"http://github.com/apache/incubator-kie-sandbox-quarkus-accelerator.git";,
                             "${params.CHECKOUT_BRANCH_NAME}",
                             "${pipelineVars.kieToolsBotGithubCredentialsId}"
                         )
@@ -77,43 +66,9 @@ pipeline {
             }
         }
 
-        stage('CI Image Build') {
-            steps {
-                script {
-                    build(
-                        job: 
"KIE/kie-tools/kie-tools-ci-jobs/kie-tools-ci-image-build/${params.CHECKOUT_BRANCH_NAME}",
-                        wait: false,
-                        parameters: [
-                            string(name: 'IMAGE_TAG', value: 
"${params.KIE_TOOLS_VERSION}")
-                        ]
-                    )
-                }
-            }
-        }
-
-        stage('Setup PNPM') {
-            steps {
-                dir('kie-tools') {
-                    script {
-                        buildUtils.setupPnpm()
-                    }
-                }
-            }
-        }
-
-        stage('PNPM Bootstrap') {
-            steps {
-                dir('kie-tools') {
-                    script {
-                        buildUtils.pnpmBootstrap()
-                    }
-                }
-            }
-        }
-
         stage('Setup new branch') {
             steps {
-                dir('kie-tools') {
+                dir('kie-sandbox-quarkus-accelerator') {
                     script {
                         sh """#!/bin/bash -el
                         git config user.email [email protected]
@@ -125,32 +80,12 @@ pipeline {
             }
         }
 
-        stage('Update project version') {
-            steps {
-                dir('kie-tools') {
-                    script {
-                        
buildUtils.pnpmUpdateProjectVersion(params.KIE_TOOLS_VERSION)
-                    }
-                }
-            }
-        }
-
-        stage('Update kogito version') {
-            steps {
-                dir('kie-tools') {
-                    script {
-                        
buildUtils.pnpmUpdateKogitoVersion(params.KOGITO_MAVEN_VERSION, 
params.KOGITO_IMAGES_TAG)
-                    }
-                }
-            }
-        }
-
-        stage('Replace CI image tag') {
+        stage('Update kogito BOM version') {
             steps {
-                dir('kie-tools/.ci/jenkins') {
+                dir('kie-sandbox-quarkus-accelerator') {
                     script {
                         sh """#!/bin/bash -el
-                        find . -type f -name 'Jenkinsfile.*' -exec sed -E -i 
"s%(kie-tools-ci-build:).*%\1${params.KIE_TOOLS_VERSION}% {} \;"
+                        mvn versions:set-property 
-Dproperty=kogito.bom.version -DnewVersion=${params.KOGITO_VERSION}
                         """.trim()
                     }
                 }
@@ -159,11 +94,11 @@ pipeline {
 
         stage('Commit and Push changes') {
             steps {
-                dir('kie-tools') {
+                dir('kie-sandbox-quarkus-accelerator') {
                     script {
                         sh """#!/bin/bash -el
                         git add .
-                        git commit --allow-empty -am "Update development 
version to ${params.KIE_TOOLS_VERSION}"
+                        git commit --allow-empty -am "Update kogito version to 
${params.KOGITO_VERSION}"
                         """.trim()
                         githubUtils.pushObject('origin', 
"${params.NEW_BRANCH_NAME}", "${pipelineVars.asfGithubPushCredentialsId}")
                     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to