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 c376384f Fix release sources zip jenkins job (#1248)
c376384f is described below
commit c376384fd4ac36c0c84abf1968bd40478f83ffac
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Mon Sep 16 16:26:27 2024 -0300
Fix release sources zip jenkins job (#1248)
---
.ci/jenkins/Jenkinsfile.zip.sources | 26 ++++++++++++++------------
.ci/jenkins/dsl/jobs.groovy | 4 ++--
2 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.zip.sources
b/.ci/jenkins/Jenkinsfile.zip.sources
index 3df8e0bd..55bdeb54 100644
--- a/.ci/jenkins/Jenkinsfile.zip.sources
+++ b/.ci/jenkins/Jenkinsfile.zip.sources
@@ -9,7 +9,8 @@ pipeline {
environment {
SOURCES_FILE_NAME = "${SOURCES_FILE_NAME_TEMPLATE}.zip"
- SIGNATURE_FILE_NAME = "${SOURCES_FILE_NAME_TEMPLATE}.asc"
+ SIGNATURE_FILE_NAME = "${SOURCES_FILE_NAME_TEMPLATE}.zip.asc"
+ CHECKSUM_FILE_NAME = "${SOURCES_FILE_NAME_TEMPLATE}.zip.sha512"
}
options {
@@ -23,20 +24,21 @@ pipeline {
archiveArtifacts artifacts: "**/${SOURCES_FILE_NAME}"
}
}
- stage('Sign and upload the sources.zip') {
- steps {
- script {
-
releaseUtils.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
-
releaseUtils.gpgSignFileDetachedSignatureWithoutPassword(SOURCES_FILE_NAME,
SIGNATURE_FILE_NAME)
-
releaseUtils.svnUploadFileToRepository(getReleaseSvnRepository(),
getReleaseSvnCredsId(), TARGET_VERSION, SOURCES_FILE_NAME, SIGNATURE_FILE_NAME)
- }
- archiveArtifacts artifacts: "**/${SIGNATURE_FILE_NAME}"
- }
- }
+ stage('Sign and upload the sources.zip') {
+ steps {
+ dir('sources-out') {
+ script {
+
releaseUtils.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
+
releaseUtils.gpgSignFileDetachedSignatureWithoutPassword(SOURCES_FILE_NAME,
SIGNATURE_FILE_NAME)
+
releaseUtils.svnUploadFileToRepository(getReleaseSvnRepository(),
getReleaseSvnCredsId(), TARGET_VERSION, SOURCES_FILE_NAME, SIGNATURE_FILE_NAME,
CHECKSUM_FILE_NAME)
+ }
+ archiveArtifacts artifacts: "**/${SIGNATURE_FILE_NAME}"
+ }
+ }
+ }
}
}
-
String getReleaseGpgSignKeyCredsId() {
return env.RELEASE_GPG_SIGN_KEY_CREDS_ID
}
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index 243dd76a..8e1d5e28 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -338,8 +338,8 @@ void setupZipSourcesJob() {
RELEASE_GPG_SIGN_KEY_CREDS_ID:
Utils.getReleaseGpgSignKeyCredentialsId(this),
RELEASE_GPG_SIGN_PASSPHRASE_CREDS_ID:
Utils.getReleaseGpgSignPassphraseCredentialsId(this),
- RELEASE_SVN_REPOSITORY: Utils.getReleaseSvnCredentialsId(this),
- RELEASE_SVN_CREDS_ID: Utils.getReleaseSvnStagingRepository(this)
+ RELEASE_SVN_REPOSITORY: Utils.getReleaseSvnStagingRepository(this),
+ RELEASE_SVN_CREDS_ID: Utils.getReleaseSvnCredentialsId(this)
])
KogitoJobTemplate.createPipelineJob(this, jobParams)?.with {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]