From ed6bb6659910a7c0de20e458d992df7a7d29cb08 Mon Sep 17 00:00:00 2001 From: Jason Porter Date: Fri, 11 Oct 2024 10:16:09 -0600 Subject: [PATCH 1/2] [NO-ISSUE] Add NOTICE file to the repo root and renamed DISCLAIMER to DISCLAIMER-WIP (#1806) * Adding NOTICE file Signed-off-by: Jason Porter * Renaming DISCLAIMER file Signed-off-by: Jason Porter --------- Signed-off-by: Jason Porter --- DISCLAIMER => DISCLAIMER-WIP | 0 NOTICE | 9 +++++++++ 2 files changed, 9 insertions(+) rename DISCLAIMER => DISCLAIMER-WIP (100%) create mode 100644 NOTICE 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 000000000..6a7d335aa --- /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. From 6833afc03df8af6fd0289022b80f771b4a5980c3 Mon Sep 17 00:00:00 2001 From: Rodrigo Antunes Date: Fri, 11 Oct 2024 13:53:53 -0300 Subject: [PATCH 2/2] Add LICENSE, DISCLAIMER-WIP and NOTICE files to the images tar.gz artifacts --- .ci/jenkins/Jenkinsfile.build-image | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.ci/jenkins/Jenkinsfile.build-image b/.ci/jenkins/Jenkinsfile.build-image index 0f852cd31..dd3254d4b 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 {