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
2024-04-09 19:28:32 +00:00
2023-02-14 16:36:01 -05:00
2019-04-19 19:52:37 +00:00
2023-04-28 12:38:49 -04:00
2018-06-01 07:45:23 -07:00
2022-12-26 21:12:47 +00:00
Description
StarlingX build source tree root
12 MiB
Languages
Python 62%
Shell 36.9%
BitBake 0.6%
Dockerfile 0.5%