From 12c3946a72443608085850020a9ae0e89896ff45 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 82b9a016..08962b4a 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