root/build-tools/stx
Davlet Panech 3f4058b566 build-image: rename ISO to reflect build timestamp
Builds generated by Jenkins are identified by a timestamp, set in the
environment, such as TIMESTAMP=2024-06-12_19-00-08. Yet the ISO file
created by build-image is named after the clock value at the point of
creation, ie a different time stamp.

This patch renames the ISO to match the overall build timestamp, if
TIMESTAMP is set in the environment.

EXAMPLE
==========================
* Original file created by LAT SDK is similar to:
    starlingx-intel-x86-64-20240613180213-cd.iso
* With TIMESTAMP=2024-06-12_19-00-08 it's renamed to:
    starlingx-intel-x86-64-2024-06-12_19-00-08-cd.iso
  along with the signatures and symlinks

TESTS
==========================
* Call build-image with TIMESTAMP set and make sure the ISO file, the
  signature and the symlinks are generated correctly
* Call build-image w/o the TIMESTAMP and check that the files are not
  renamed

Story: 2010055
Task: 50358

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I184f6a4f79688e0c8a3029d2aafa22c383b5a524
2024-06-17 15:28:32 -04:00
..
patch Automatically add prechecks scripts to patch 2024-04-29 16:30:26 -03:00
.gitignore stx: discover buildable packages 2022-04-19 17:42:35 +08:00
aptly_deb_usage.py aptly: update expired GPG key 2024-02-23 22:46:41 -05:00
build-image build-image: rename ISO to reflect build timestamp 2024-06-17 15:28:32 -04:00
build-pkgs build-pkgs: Fixed "exit on failure" feature broken 2024-02-28 00:53:49 +08:00
circular_dep.conf Circular dependency removal while building openssl package with sctp. 2024-06-05 14:08:42 -04:00
debdownloader build-tools: apt repo priority based on "Origin" 2022-07-05 20:39:40 -04:00
debian-image.inc Remove redfishtool from opensource Debian include list 2024-05-07 16:59:35 -04:00
debrepack.py debrepack: Fixed debver inconsistent issue 2024-04-08 15:37:57 +08:00
debsentry.py build-pkgs: Fixed the deb packages missing issue after reuse 2023-05-25 18:33:57 +08:00
discovery.py Debian: build-image support debian_iso_image.inc 2022-08-27 21:43:39 +08:00
downloader cengn reference removal 2023-11-07 17:06:46 -05:00
dsc_depend.py Log members of a circular dependency 2023-11-07 10:19:04 -05:00
dsccache.py Reuse fix to not rebuild if no source changes 2022-12-16 13:12:03 -08:00
git_utils.py stx: discover buildable packages 2022-04-19 17:42:35 +08:00
image-layers.conf Create layer-specific aptly binary repositories 2023-10-05 00:39:09 +00:00
repo_manage.py Allow our repositories to have multiple versions of a package 2023-10-05 00:41:20 +00:00
repo_utils.py stx: discover buildable packages 2022-04-19 17:42:35 +08:00
utils.py iutils.py: fix typo for upstream url 2023-12-08 16:00:59 +08:00