You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ed...@apache.org on 2025/05/17 14:01:11 UTC

(incubator-kie-tools) branch 10.1.x updated: Jenkins Pipelines - release-build: added missing job for sonataflow management console and changed order for kn-plugin as it dependes on sonataflow devui - job sonataflow-quarkus-devui: updated job to use Jenkins Shared Lib function to build - shared-lib: debugging KIE_TOOLS_BUILD env variable

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

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


The following commit(s) were added to refs/heads/10.1.x by this push:
     new bb1068e6bf8 Jenkins Pipelines - release-build: added missing job for sonataflow management console and changed order for kn-plugin as it dependes on sonataflow devui - job sonataflow-quarkus-devui: updated job to use Jenkins Shared Lib function to build - shared-lib: debugging KIE_TOOLS_BUILD env variable
bb1068e6bf8 is described below

commit bb1068e6bf89a1781e894c41c031015e4d1dad90
Author: Eduardo Cerqueira <ed...@aletyx.ai>
AuthorDate: Sat May 17 10:01:04 2025 -0400

    Jenkins Pipelines
    - release-build: added missing job for sonataflow management console and changed order for kn-plugin as it dependes on sonataflow devui
    - job sonataflow-quarkus-devui: updated job to use Jenkins Shared Lib function to build
    - shared-lib: debugging KIE_TOOLS_BUILD env variable
---
 .ci/jenkins/Jenkinsfile.release-build              | 47 +++++++++++++++++-----
 .../Jenkinsfile.sonataflow-quarkus-devui           | 14 +++----
 .ci/jenkins/shared-scripts/buildUtils.groovy       |  6 +++
 3 files changed, 48 insertions(+), 19 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.release-build b/.ci/jenkins/Jenkinsfile.release-build
index 2aa30dd5c31..814d4d6f552 100644
--- a/.ci/jenkins/Jenkinsfile.release-build
+++ b/.ci/jenkins/Jenkinsfile.release-build
@@ -165,17 +165,6 @@ pipeline {
                     }
                 }
 
-                stage('Kn Plugin Workflow') {
-                    when {
-                        expression { env.KN_PLUGIN_WORKFLOW == 'true' }
-                    }
-                    steps {
-                        script {
-                            knPluginWorkflowBuildJob()
-                        }
-                    }
-                }
-
                 stage('Serverless Logic Web Tools Swf Builder Image') {
                     when {
                         expression { env.SERVERLESS_LOGIC_WEB_TOOLS_SWF_BUILDER_IMAGE == 'true' }
@@ -297,6 +286,17 @@ pipeline {
                     }
                 }
 
+                stage('Sonataflow Management Console') {
+                    when {
+                        expression { env.SONATAFLOW_MANAGEMENT_CONSOLE == 'true' }
+                    }
+                    steps {
+                        script {
+                            sonataflowManagementConsoleBuildJob()
+                        }
+                    }
+                }
+
                 stage('Dependant build #1') {
                     stages {
                         stage('Dev Deployment Base Image') {
@@ -364,6 +364,17 @@ pipeline {
                                 }
                             }
                         }
+
+                        stage('Kn Plugin Workflow') {
+                            when {
+                                expression { env.KN_PLUGIN_WORKFLOW == 'true' && (env.SONATAFLOW_QUARKUS_DEVUI_JOB_RESULT == 'SUCCESS') }
+                            }
+                            steps {
+                                script {
+                                    knPluginWorkflowBuildJob()
+                                }
+                            }
+                        }
                     }
                 }
 
@@ -753,6 +764,20 @@ def sonataflowQuarkusDevuiBuildJob() {
             booleanParam(name: 'DRY_RUN', value: "${params.DRY_RUN}"),
             string(name: 'BASE_REF', value: "${params.BASE_REF}"),
             string(name: 'RELEASE_VERSION', value: "${params.RELEASE_VERSION}"),
+            string(name: 'RELEASE_CANDIDATE_VERSION', value: "${params.RELEASE_CANDIDATE_VERSION}"),
+            string(name: 'PIPELINE_PATH', value: "${params.PIPELINE_PATH}")
+        ]
+    ).result
+}
+
+def sonataflowManagementConsoleBuildJob() {
+    env.SONATAFLOW_MANAGEMENT_CONSOLE_JOB_RESULT = build(
+        job: "KIE/kie-tools/${params.PIPELINE_PATH}/individual-release-artifacts-jobs/sonataflow-management-console",
+        parameters: [
+            booleanParam(name: 'DRY_RUN', value: "${params.DRY_RUN}"),
+            string(name: 'BASE_REF', value: "${params.BASE_REF}"),
+            string(name: 'RELEASE_VERSION', value: "${params.RELEASE_VERSION}"),
+            string(name: 'RELEASE_CANDIDATE_VERSION', value: "${params.RELEASE_CANDIDATE_VERSION}"),
             string(name: 'PIPELINE_PATH', value: "${params.PIPELINE_PATH}")
         ]
     ).result
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.sonataflow-quarkus-devui b/.ci/jenkins/release-jobs/Jenkinsfile.sonataflow-quarkus-devui
index 42adc076449..ab0e9c44b51 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.sonataflow-quarkus-devui
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.sonataflow-quarkus-devui
@@ -30,6 +30,7 @@ pipeline {
         booleanParam(description: 'Dry run', name: 'DRY_RUN', defaultValue: true)
         string(description: 'Release Version', name: 'RELEASE_VERSION', defaultValue: '0.0.0')
         string(description: 'Base Ref', name: 'BASE_REF')
+        string(description: 'Release Candidate Version', name: 'RELEASE_CANDIDATE_VERSION', defaultValue: '')
         string(name: 'PIPELINE_PATH', description: 'Path to run the pipeline')
     }
 
@@ -90,7 +91,7 @@ pipeline {
             steps {
                 dir('kie-tools') {
                     script {
-                        buildUtils.setupPnpm()
+                        buildUtils.setupPnpm("${pipelineVars.mavenSettingsReleaseConfigFileId}")
                     }
                 }
             }
@@ -107,6 +108,9 @@ pipeline {
         }
 
         stage('Setup signing key') {
+            when {
+                expression { !params.DRY_RUN && params.RELEASE_CANDIDATE_VERSION != '' }
+            }
             steps {
                 script {
                     releaseUtils.setupSigningKey("${pipelineVars.asfReleaseGPGKeyCredentialsId}")
@@ -121,13 +125,7 @@ pipeline {
                         if (params.DRY_RUN) {
                             env.KIE_TOOLS_BUILD__mavenDeploySkip = 'true'
                         }
-                        configFileProvider([configFile(fileId: "${pipelineVars.mavenSettingsReleaseConfigFileId}", variable: 'MAVEN_SETTINGS_FILE')]) {
-                            sh """#!/bin/bash -el
-                            pnpm ${env.PNPM_FILTER_STRING} exec 'bash' '-c' 'echo -e "\n--settings=${MAVEN_SETTINGS_FILE}" >> .mvn/maven.config'
-                            pnpm ${env.PNPM_FILTER_STRING} exec 'bash' '-c' 'echo -Papache-release >> .mvn/maven.config'
-                            pnpm ${env.PNPM_FILTER_STRING} build:prod
-                            """.trim()
-                        }
+                        buildUtils.pnpmBuild(env.PNPM_FILTER_STRING, env.MAVEN_ARGS)
                     }
                 }
             }
diff --git a/.ci/jenkins/shared-scripts/buildUtils.groovy b/.ci/jenkins/shared-scripts/buildUtils.groovy
index 9c35e820f9a..5ca722fe94c 100644
--- a/.ci/jenkins/shared-scripts/buildUtils.groovy
+++ b/.ci/jenkins/shared-scripts/buildUtils.groovy
@@ -86,6 +86,12 @@ def pnpmBootstrap(String filters = '', String mavenArgs = '') {
 def pnpmBuildFull(Integer workspaceConcurrency = 1) {
     sh """
     #!/bin/bash -el
+    
+    echo "--------------------------------"
+    echo "DEBUG: KIE_TOOLS_BUILD"
+    env | grep KIE_TOOLS_BUILD
+    echo "--------------------------------"
+    
     pnpm -r --workspace-concurrency=${workspaceConcurrency} build:prod
     """.trim()
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org