This is an automated email from the ASF dual-hosted git repository.
Kusuma04-dev pushed a commit to branch test_10.3.x
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/test_10.3.x by this push:
new b40940d73ca tests
b40940d73ca is described below
commit b40940d73ca988e1bc8e1986d17b663792ebbdf5
Author: Kusuma <[email protected]>
AuthorDate: Mon Oct 19 18:37:23 2026 +0530
tests
---
.ci/jenkins/shared-scripts/releaseUtils.groovy | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/.ci/jenkins/shared-scripts/releaseUtils.groovy
b/.ci/jenkins/shared-scripts/releaseUtils.groovy
index 92f3df1a366..7bf69554ba5 100644
--- a/.ci/jenkins/shared-scripts/releaseUtils.groovy
+++ b/.ci/jenkins/shared-scripts/releaseUtils.groovy
@@ -43,10 +43,23 @@ def signArtifact(String artifactFileName) {
def publishArtifacts(String artifactsDir, String releaseRepository, String
releaseVersion, String credentialsId) {
withCredentials([usernamePassword(credentialsId: credentialsId,
usernameVariable: 'ASF_USERNAME', passwordVariable: 'ASF_PASSWORD')]) {
sh """#!/bin/bash -el
- if ! svn ls --non-interactive ${releaseRepository}/${releaseVersion} >
/dev/null 2>&1; then
- svn mkdir --parents --non-interactive --no-auth-cache --username
\${ASF_USERNAME} --password "\${ASF_PASSWORD}" -m "Create Apache KIE
${releaseVersion} staging directory" ${releaseRepository}/${releaseVersion}
+ SVN_URL="${releaseRepository}/${releaseVersion}"
+ rm -rf svn-kie
+
+ # Create the RC directory in the SVN staging repository when it does
not exist yet.
+ # Only a "path does not exist" error triggers the creation; any other
failure (network, auth, ...) aborts.
+ if SVN_LS_OUTPUT=\$(svn ls --non-interactive "\${SVN_URL}" 2>&1); then
+ echo "SVN directory \${SVN_URL} already exists"
+ elif echo "\${SVN_LS_OUTPUT}" | grep -qE
"E170000|160013|non-existent|doesn't exist"; then
+ echo "SVN directory \${SVN_URL} does not exist, creating it"
+ svn mkdir --parents --non-interactive --no-auth-cache --username
\${ASF_USERNAME} --password "\${ASF_PASSWORD}" -m "Create Apache KIE
${releaseVersion} staging directory" "\${SVN_URL}"
+ else
+ echo "Unable to access \${SVN_URL}:"
+ echo "\${SVN_LS_OUTPUT}"
+ exit 1
fi
- svn co --depth=empty ${releaseRepository}/${releaseVersion} svn-kie
+
+ svn co --depth=empty "\${SVN_URL}" svn-kie
cp ${artifactsDir}/* svn-kie
cd svn-kie
svn add . --force
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]