This is an automated email from the ASF dual-hosted git repository.
Kusuma04-dev pushed a commit to branch test1
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/test1 by this push:
new d40ae56013b tesys
d40ae56013b is described below
commit d40ae56013b6ae0409aa4eca9153a44193e36c41
Author: Kusuma04-dev <[email protected]>
AuthorDate: Tue Nov 17 16:32:02 2026 +0530
tesys
---
.ci/jenkins/shared-scripts/buildUtils.groovy | 6 +++++-
scripts/release/add-staging-repositories.js | 4 +++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.ci/jenkins/shared-scripts/buildUtils.groovy
b/.ci/jenkins/shared-scripts/buildUtils.groovy
index ba64b3a1ac7..db10f96d192 100644
--- a/.ci/jenkins/shared-scripts/buildUtils.groovy
+++ b/.ci/jenkins/shared-scripts/buildUtils.groovy
@@ -79,9 +79,13 @@ def setupPnpm(String mavenSettingsFileId = '', String
stagingRepositories = '')
withEnv(["STAGING_REPOSITORIES=${stagingRepositories.trim()}"]) {
sh '''#!/bin/bash -el
node scripts/release/add-staging-repositories.js
"${WORKSPACE}/kie-staging-settings.xml" "${STAGING_REPOSITORIES}"
- pnpm -r exec 'bash' '-c' 'echo
--global-settings=${WORKSPACE}/kie-staging-settings.xml >> .mvn/maven.config'
'''.trim()
}
+ // Passed to Maven through MAVEN_ARGS (Maven 3.9+) and NOT written to
the per-package .mvn/maven.config: some
+ // packages (e.g. dev-deployment-quarkus-blank-app) have that file
copied into container images, where this
+ // Jenkins-only path does not exist and Maven fails with "The
specified global settings file does not exist".
+ // env.* assignments persist across the stages of the pipeline.
+ env.MAVEN_ARGS = [env.MAVEN_ARGS,
"--global-settings=${env.WORKSPACE}/kie-staging-settings.xml"].findAll {
it?.trim() }.join(' ')
}
}
diff --git a/scripts/release/add-staging-repositories.js
b/scripts/release/add-staging-repositories.js
index 93b7fd8f769..62c9769c5d3 100755
--- a/scripts/release/add-staging-repositories.js
+++ b/scripts/release/add-staging-repositories.js
@@ -26,7 +26,9 @@
// published to staging (e.g. kogito-apps-bom:10.3.0) before they reach Maven
Central, without
// having to hand-edit the credentials-bearing settings file managed in
Jenkins.
//
-// In CI, pass a NEW file here and wire it through `--global-settings=<file>`
in `.mvn/maven.config`.
+// In CI, pass a NEW file here and wire it through `--global-settings=<file>`
in the `MAVEN_ARGS` environment
+// variable (see `setupPnpm` in .ci/jenkins/shared-scripts/buildUtils.groovy).
Do not write it to `.mvn/maven.config`:
+// some of those files are copied into container images, where the CI path
does not exist.
// Do not add it to the file passed as `--settings`: `pnpm bootstrap` prepends
its own `--settings`
// and Maven honors only the first one, so a profile added there would be
silently ignored.
//
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]