rodrigonull commented on code in PR #1770:
URL:
https://github.com/apache/incubator-kie-kogito-images/pull/1770#discussion_r1613577211
##########
.ci/jenkins/Jenkinsfile.build-image:
##########
@@ -222,6 +222,31 @@ pipeline {
}
}
}
+ stage('Export, Sign and Archive Image and signature') {
+ when {
+ expression { return shouldExportAndGpgSign() }
+ }
+ steps {
+ script {
+ def resultingFileName = "${getFinalImageName()}.tar.gz"
+ def signatureFileName = "${resultingFileName}.asc"
+ sh """
+ docker pull ${getBuiltImageTag()}
+ docker save ${getBuiltImageTag()} | gzip >
${resultingFileName}
+ """
+
release.gpgImportKeyFromFileWithPassword(getReleaseGpgSignKeyCredsId(),
getReleaseGpgSignPassphraseCredsId())
+
release.gpgSignFileDetachedSignatureWithPassword(resultingFileName,
signatureFileName, getReleaseGpgSignPassphraseCredsId())
+
release.svnUploadFileToRepository(getReleaseSvnRepository(),
getReleaseSvnCredsId(), resultingFileName, signatureFileName)
Review Comment:
```suggestion
release.svnUploadFileToRepository(getReleaseSvnRepository(),
getReleaseSvnCredsId(), getReleaseVersion(), resultingFileName,
signatureFileName)
```
We need to also pass the release version which will be the directory where
the artifacts will be published to.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]