This is an automated email from the ASF dual-hosted git repository.

porcelli pushed a commit to branch 10.0.x
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git


The following commit(s) were added to refs/heads/10.0.x by this push:
     new f4f1228b [10.0.x] kie-issues#1533: Add LICENSE, DISCLAIMER-WIP and 
NOTICE files to the images tar.gz artifacts (#1807)
f4f1228b is described below

commit f4f1228b172175ab4a13fc3bdbf868dc904ed9db
Author: Rodrigo Antunes <[email protected]>
AuthorDate: Fri Oct 11 14:42:23 2024 -0300

    [10.0.x] kie-issues#1533: Add LICENSE, DISCLAIMER-WIP and NOTICE files to 
the images tar.gz artifacts (#1807)
    
    * [NO-ISSUE] Add NOTICE file to the repo root and renamed DISCLAIMER to 
DISCLAIMER-WIP (#1806)
    
    * Adding NOTICE file
    
    Signed-off-by: Jason Porter <[email protected]>
    
    * Renaming DISCLAIMER file
    
    Signed-off-by: Jason Porter <[email protected]>
    
    ---------
    
    Signed-off-by: Jason Porter <[email protected]>
    
    * Add LICENSE, DISCLAIMER-WIP and NOTICE files to the images tar.gz 
artifacts
    
    ---------
    
    Signed-off-by: Jason Porter <[email protected]>
    Co-authored-by: Jason Porter <[email protected]>
    Co-authored-by: Rodrigo Antunes <[email protected]>
---
 .ci/jenkins/Jenkinsfile.build-image | 9 +++++++--
 DISCLAIMER => DISCLAIMER-WIP        | 0
 NOTICE                              | 9 +++++++++
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.build-image 
b/.ci/jenkins/Jenkinsfile.build-image
index 0f852cd3..dd3254d4 100644
--- a/.ci/jenkins/Jenkinsfile.build-image
+++ b/.ci/jenkins/Jenkinsfile.build-image
@@ -212,17 +212,22 @@ pipeline {
             }
             steps {
                 script {
-                    String resultingFileName = 
"apache-kie-${getImageArtifactReleaseVersion()}-incubating-${getBuildImageName()}-image.tar.gz"
+                    String resultingFileNameTarGz = 
"apache-kie-${getImageArtifactReleaseVersion()}-incubating-${getBuildImageName()}-image.tar.gz"
+                    String resultingFileNameTar = 
resultingFileNameTarGz.replace('.gz', '')
                     String signatureFileName = "${resultingFileName}.asc"
                     String checksumFileName = "${resultingFileName}.sha512"
                     sh """
                         docker pull ${getBuiltImageTag()}
                         docker tag ${getBuiltImageTag()} 
${getBuiltDeployImageTag()}
                         docker save ${getBuiltDeployImageTag()} | gzip > 
${resultingFileName}
+
+                        zcat ${resultingFileNameTarGz} | dd 
of=${resultingFileNameTar} bs=512 skip=1
+                        tar -rvf ${resultingFileNameTar} ./LICENSE ./NOTICE 
./DISCLAIMER-WIP
+                        gzip -q -c ${resultingFileNameTar} > 
${resultingFileNameTarGz}
                     """
                     
releaseUtils.gpgImportKeyFromStringWithoutPassword(getReleaseGpgSignKeyCredsId())
                     
releaseUtils.gpgSignFileDetachedSignatureWithoutPassword(resultingFileName, 
signatureFileName)
-                    
releaseUtils.svnUploadFileToRepository(getReleaseSvnRepository(), 
getReleaseSvnCredsId(), getImageArtifactReleaseCandidateVersion(), 
resultingFileName, signatureFileName, checksumFileName)
+                    
releaseUtils.svnUploadFileToRepository(getReleaseSvnRepository(), 
getReleaseSvnCredsId(), getImageArtifactReleaseCandidateVersion(), 
resultingFileNameTarGz, signatureFileName, checksumFileName)
                 }
             }
             post {
diff --git a/DISCLAIMER b/DISCLAIMER-WIP
similarity index 100%
rename from DISCLAIMER
rename to DISCLAIMER-WIP
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 00000000..6a7d335a
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,9 @@
+Apache KIE
+Copyright 2023 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+The Initial Developer of some parts of the framework, which are copied from, 
derived from, or
+inspired by KIE (Knowledge Is Everthing) group, is Red Hat, Inc 
(https://www.redhat.com/).
+Copyright Red Hat, Inc. and/or its affiliates.. All Rights Reserved.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to