mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-22 17:59:31 +00:00
cc: qemu-tdx: Ensure we try the cache for the specific CC version
Otherwise we'd have to build the component every single time as the main version is different from the CC one. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
d03685004e
commit
3f309fad01
@ -590,9 +590,16 @@ install_qemu_helper() {
|
||||
export qemu_repo="$(get_from_kata_deps ${qemu_repo_yaml_path})"
|
||||
export qemu_version="$(get_from_kata_deps ${qemu_version_yaml_path})"
|
||||
|
||||
# This must only be done as part of the CCv0 branch, as TDX version of
|
||||
# QEMU is not the same as the one used on main
|
||||
local url="${jenkins_url}/job/kata-containers-main-${qemu_name}-$(uname -m)/${cached_artifacts_path}"
|
||||
if [[ "${qemu_name}" == "qemu-tdx-experimental" ]]; then
|
||||
url="${jenkins_url}/job/kata-containers-2.0-qemu-tdx-cc-$(uname -m)/${cached_artifacts_path}"
|
||||
fi
|
||||
|
||||
install_cached_tarball_component \
|
||||
"${qemu_name}" \
|
||||
"${jenkins_url}/job/kata-containers-main-${qemu_name}-$(uname -m)/${cached_artifacts_path}" \
|
||||
"${url}" \
|
||||
"${qemu_version}-$(calc_qemu_files_sha256sum)" \
|
||||
"$(get_qemu_image_name)" \
|
||||
"${final_tarball_name}" \
|
||||
|
Loading…
Reference in New Issue
Block a user