From 5a8a6a24a8fd8a5e9dc92904df3ff837576f6daa Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Thu, 12 May 2022 17:38:38 +0200
Subject: [PATCH] .oniro-ci: add timestamps to build bundles

Those timestamps are useful to create unique content in HawkBit
later on. We can always strip them if we want to, but it is hard
to re-create that information when it is not encoded in the file name.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 .oniro-ci/build-generic.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml
index 9f500a92..17440e32 100644
--- a/.oniro-ci/build-generic.yaml
+++ b/.oniro-ci/build-generic.yaml
@@ -312,6 +312,8 @@
 .build-rauc-bundle:
   extends: .build-image
   variables:
+    # Put timestamp into bundle name.
+    CI_ONIRO_BB_LOCAL_CONF_IMAGE_VERSION_SUFFIX: "-$${DATETIME}"
     CI_ONIRO_JOB_ARTIFACTS: "*.raucb"
   # Avoid pulling in any artifacts from the previous stage.
   dependencies: []
-- 
GitLab