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 c2cf6ac9771 Jenkins Pipelines - jbpm-quarkus-devui: Groovy idiomatic
to pass env variable across shell, it is needed to be accessible by pnpmBuild
function
c2cf6ac9771 is described below
commit c2cf6ac9771950bcdf4a591d95c856ec82963ee4
Author: Eduardo Cerqueira <[email protected]>
AuthorDate: Sat May 17 11:01:14 2025 -0400
Jenkins Pipelines
- jbpm-quarkus-devui: Groovy idiomatic to pass env variable across shell,
it is needed to be accessible by pnpmBuild function
---
.../release-jobs/Jenkinsfile.jbpm-quarkus-devui | 6 +++---
.ci/jenkins/shared-scripts/buildUtils.groovy | 20 +++++++++++++-------
2 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/.ci/jenkins/release-jobs/Jenkinsfile.jbpm-quarkus-devui
b/.ci/jenkins/release-jobs/Jenkinsfile.jbpm-quarkus-devui
index 01ce98335bd..194d01e3d9e 100644
--- a/.ci/jenkins/release-jobs/Jenkinsfile.jbpm-quarkus-devui
+++ b/.ci/jenkins/release-jobs/Jenkinsfile.jbpm-quarkus-devui
@@ -120,10 +120,10 @@ pipeline {
steps {
dir('kie-tools') {
script {
- if (!params.DRY_RUN) {
- env.KIE_TOOLS_BUILD__mavenDeploySkip = 'false'
+ env.KIE_TOOLS_BUILD__mavenDeploySkip = params.DRY_RUN
? 'true' : 'false'
+
withEnv(["KIE_TOOLS_BUILD__mavenDeploySkip=${env.KIE_TOOLS_BUILD__mavenDeploySkip}"])
{
+ buildUtils.pnpmBuild(env.PNPM_FILTER_STRING,
env.MAVEN_ARGS)
}
- 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 5ca722fe94c..d245409f0f8 100644
--- a/.ci/jenkins/shared-scripts/buildUtils.groovy
+++ b/.ci/jenkins/shared-scripts/buildUtils.groovy
@@ -85,13 +85,7 @@ 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 "--------------------------------"
-
+ #!/bin/bash -el
pnpm -r --workspace-concurrency=${workspaceConcurrency} build:prod
""".trim()
}
@@ -103,6 +97,18 @@ def pnpmBuild(String filters, String mavenArgs = '') {
sh """
#!/bin/bash -el
export MAVEN_ARGS="${mavenArgs}"
+
+ echo "--------------------------------"
+ echo "DEBUG: MAVEN_ARGS"
+ echo "${MAVEN_ARGS}"
+ echo "--------------------------------"
+
+ echo "--------------------------------"
+ echo "DEBUG: KIE_TOOLS_BUILD"
+ env | grep KIE_TOOLS_BUILD
+ echo "--------------------------------"
+ echo "--------------------------------"
+
pnpm ${filters} --workspace-concurrency=1 build:prod
""".trim()
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]