X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=playbooks%2Froles%2Fpackage%2Ffiles%2Fbuild.sh;fp=playbooks%2Froles%2Fpackage%2Ffiles%2Fbuild.sh;h=fa801b83cbefcfd50deaa750889f37451ff470db;hp=c28264decb59146dfe366fda69a79eee4eee4826;hb=f8feaedc7ce75ad5524fab105d0b6d7dc178f9fc;hpb=d7c1e7673b19be3c8ee33283762aba19a606b6cd diff --git a/playbooks/roles/package/files/build.sh b/playbooks/roles/package/files/build.sh index c28264d..fa801b8 100755 --- a/playbooks/roles/package/files/build.sh +++ b/playbooks/roles/package/files/build.sh @@ -48,7 +48,13 @@ rm -rf "$OFFLINE_PKG_FOLDER" cat /tmp/decompress.sh "$OFFLINE_PKG_FILE" > "$OFFLINE_INSTALLER_FILE" chmod +x "$OFFLINE_INSTALLER_FILE" -# remove intermediate offline pkg file -rm -rf "$OFFLINE_PKG_FILE" +# NOTE (fdegir): if the packaging is run by release job, that job stored release +# metadata in release.properties file. If this file exists, we need to keep tarball +# as that must be uploaded for further delivery. The reason for this is that the +# installer can not be scanned by XRAY +if [[ ! -f "/tmp/release.properties" ]]; then + # remove intermediate offline pkg file + rm -rf "$OFFLINE_PKG_FILE" +fi # vim: set ts=2 sw=2 expandtab: