gha: Update journal log names for kubernetes artifacts

This PR updates the journal log names for kubernetes artifacts
in order to make sure that we have different names when we are
running parallel GHA jobs.

Fixes #9308

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes
2024-03-19 16:44:11 +00:00
parent 1aec4f737a
commit a855ecf21b

View File

@@ -291,7 +291,7 @@ function collect_artifacts() {
fi
mkdir -p "${artifacts_dir}"
info "Collecting artifacts using ${KATA_HYPERVISOR} hypervisor"
local journalctl_log_filename="journalctl.log"
local journalctl_log_filename="journalctl-$RANDOM.log"
local journalctl_log_path="${artifacts_dir}/${journalctl_log_filename}"
sudo journalctl --since="$start_time" > "${journalctl_log_path}"