Keep tarball and release properties for release 75/5375/1
authorFatih Degirmenci <fatih.degirmenci@est.tech>
Sat, 11 Jul 2020 12:55:52 +0000 (12:55 +0000)
committerFatih Degirmenci <fatih.degirmenci@est.tech>
Sun, 12 Jul 2020 08:55:29 +0000 (08:55 +0000)
commit6a14a3b273fabd44d24a75417b4e586fb3020c2b
tree00594574bd2642cb635bbb6ea64680da5ab50590
parent36ddcc0adba0817757815ed8ca663b3b7f776c1b
Keep tarball and release properties for release

The installer file created by the package role can not be scanned by
JFrog XRAY due to it being an incompatible artifact type. In order for
the artifact to be scanned, it needs to be in one of the supported
formats.

This change updates package role to keep the tarball if the packaging
is run by release job in order to make scanning of artifacts possible.

In addition to keeping the tarball around, release job records release
metadata in release.properties file. This file is needed to be included
in tarball and installer file in order to make the traceability better.

Please note that both of these operations take effect if the release
metadata file /tmp/release.properties exists. This file is only created
by release job on Jenkins and does not exist for manual builds so there
is not change for manual packaging.

Change-Id: I64a4d96207a1b8862440128ade87f93f03269e63
playbooks/roles/package/files/build.sh
playbooks/roles/package/tasks/main.yaml
playbooks/roles/package/tasks/record-shas.yaml [new file with mode: 0644]