This is an automated email from the ASF dual-hosted git repository. rantunes pushed a commit to branch 10.0.x-test in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
commit 47606be2cd0b4b357533c2562066a2b1d452cea4 Author: Rodrigo Antunes <[email protected]> AuthorDate: Fri Aug 30 14:58:54 2024 -0300 Fix SVN upload utility function --- jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy b/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy index af51530b..f72483a7 100644 --- a/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy +++ b/jenkins-pipeline-shared-libraries/vars/releaseUtils.groovy @@ -38,13 +38,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: [email protected] For additional commands, e-mail: [email protected]
