You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ra...@apache.org on 2024/09/03 18:21:02 UTC
(incubator-kie-kogito-pipelines) branch 10.0.x updated: [10.0.x] NO-ISSUE: Fix SVN upload utility function (#1246)
This is an automated email from the ASF dual-hosted git repository.
rantunes pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 32bb0ca0 [10.0.x] NO-ISSUE: Fix SVN upload utility function (#1246)
32bb0ca0 is described below
commit 32bb0ca07cf10125b24185a06529afcd470e73cd
Author: Rodrigo Antunes <co...@rodrigoantunes.com.br>
AuthorDate: Tue Sep 3 15:20:58 2024 -0300
[10.0.x] NO-ISSUE: Fix SVN upload utility function (#1246)
* Fix SVN upload utility function
* Add shasum func
---
jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy b/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy
index af51530b..bab1596b 100644
--- a/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy
+++ b/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy
@@ -29,7 +29,10 @@ def gpgSignFileDetachedSignatureWithPassword(String file, String signatureTarget
}
def gpgSignFileDetachedSignatureWithoutPassword(String file, String signatureTarget) {
- sh "gpg --batch --sign --pinentry-mode=loopback --output ${signatureTarget} --detach-sig ${file}"
+ sh """
+ gpg --batch --sign --pinentry-mode=loopback --output ${signatureTarget} --detach-sig ${file}
+ shasum -a 512 ${file} > ${file}.sha512
+ """
}
boolean gpgIsValidDetachedSignature(String file, String signature) {
@@ -38,13 +41,13 @@ boolean gpgIsValidDetachedSignature(String file, String signature) {
def svnUploadFileToRepository(String svnRepository, String svnCredentialsId, String releaseVersion, String... files) {
withCredentials([usernamePassword(credentialsId: svnCredentialsId, usernameVariable: 'ASF_USERNAME', passwordVariable: 'ASF_PASSWORD')]) {
- sh "svn co --depth=empty ${svnRepository} svn-kie"
+ sh "svn co --depth=empty ${svnRepository}/${releaseVersion} svn-kie"
for (file in files) {
- sh "cp ${file} svn-kie/${releaseVersion}/"
+ sh "cp ${file} svn-kie"
}
sh """
- svn add "svn-kie/${releaseVersion}"
cd svn-kie
+ svn add . --force
svn ci --non-interactive --no-auth-cache --username ${ASF_USERNAME} --password '${ASF_PASSWORD}' -m "Apache KIE ${releaseVersion} artifacts"
rm -rf svn-kie
"""
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org