Skip to content

Commit

Permalink
[10.0.x] kie-issues#1533: Add LICENSE, DISCLAIMER-WIP and NOTICE file…
Browse files Browse the repository at this point in the history
…s 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]>
  • Loading branch information
3 people authored Oct 11, 2024
1 parent ba2fed4 commit f4f1228
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .ci/jenkins/Jenkinsfile.build-image
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit f4f1228

Please sign in to comment.