Commit c2505d88 authored by Guido Gunther's avatar Guido Gunther
Browse files

build-image: Check correct url for https

We were checking the kernel in the u-boot block which breaks if
you e.g. get uboot via download but the kernel via KERNEL_URL
local file copy.
parent 90a1b1f3
Pipeline #35934 passed with stage
in 18 seconds
...@@ -62,7 +62,7 @@ fetch_uboot() { ...@@ -62,7 +62,7 @@ fetch_uboot() {
[ -n "${uboot_url}" ] || { echo "uboot_url not set in board config"; exit 1; } [ -n "${uboot_url}" ] || { echo "uboot_url not set in board config"; exit 1; }
rm -f "${dir}/archive.zip" rm -f "${dir}/archive.zip"
echo "Fetching uboot from ${uboot_url}" echo "Fetching uboot from ${uboot_url}"
if [[ "${kernel_url}" =~ https:// ]]; then if [[ "${uboot_url}" =~ https:// ]]; then
wget "${JENKINS_AUTH[@]}" -nv --no-glob -P"${dir}" "${uboot_url}" wget "${JENKINS_AUTH[@]}" -nv --no-glob -P"${dir}" "${uboot_url}"
(cd "${dir}" && unzip -ojq archive.zip) (cd "${dir}" && unzip -ojq archive.zip)
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment