Commit fe45ebc4 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz

get_image: Fix CI build URLs

The URL for the test and CI image are not built in the same way, coming from separate branches. This fixes it until it get sorted out in image-builder.
parent 208feeac
Pipeline #2869 passed with stage
in 2 minutes and 12 seconds
......@@ -38,10 +38,18 @@ done
[ ! -e files ] && mkdir files
base_url=https://arm01.puri.sm/job/Images/job/${pureos_board}-${build_type}_image_build/lastSuccessfulBuild/artifact/
wget -N "${base_url}/${pureos_board}-${build_type}.img.xz" -P files/
if [ "${build_type}" == "ci" ]; then
suffix=""
build_name="devkit_CI_image_build"
else
suffix="-${build_type}"
build_name="${pureos_board}-${build_type}_image_build"
fi
base_url=https://arm01.puri.sm/job/Images/job/${build_name}/lastSuccessfulBuild/artifact/
wget -N "${base_url}/${pureos_board}${suffix}.img.xz" -P files/
if [ "${no_extract}" == 0 ]; then
xz -vdk -f files/${pureos_board}-${build_type}.img.xz
xz -vdk -f files/${pureos_board}${suffix}.img.xz
fi
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