diff --git a/boards/.a62.yml b/boards/.a62.yml index dc93cd65001614ed2e1065e1bb70b6c557294f07..c410f6cbe82d4fc223c1ff01aede9b69be34d1dd 100644 --- a/boards/.a62.yml +++ b/boards/.a62.yml @@ -22,7 +22,7 @@ deploy-edgehog-a62: UBOOT_FILE: u-boot.imx KERNEL_FILE: zImage AZURE_PATH: imx6/a62 - IMAGE_NAME: edgehog-base-image + IMAGE_NAME: edgehog-things-image ############################# ### EDGEHOG EMBEDDED BASE ### diff --git a/boards/.c20.yml b/boards/.c20.yml index 4e1c5c4f7b23bb71dc8d8e81b8927300e6ca80c1..5244bb6d8a2485907d94e3c5164da62fa31d0119 100644 --- a/boards/.c20.yml +++ b/boards/.c20.yml @@ -21,7 +21,7 @@ deploy-edgehog-c20: UBOOT_FILE: u-boot.bin KERNEL_FILE: Image AZURE_PATH: imx8/c20 - IMAGE_NAME: edgehog-base-image + IMAGE_NAME: edgehog-things-image ############################# ### EDGEHOG EMBEDDED BASE ### diff --git a/boards/.c31.yml b/boards/.c31.yml index 494d83815b6ef21edb53b580737d0e9928d78c93..246aa19dd31052c9c35cff2da8897873ddebc987 100644 --- a/boards/.c31.yml +++ b/boards/.c31.yml @@ -21,7 +21,7 @@ deploy-edgehog-c31: UBOOT_FILE: uboot.img KERNEL_FILE: Image AZURE_PATH: rockchip/c31 - IMAGE_NAME: edgehog-base-image + IMAGE_NAME: edgehog-things-image ############################# ### EDGEHOG EMBEDDED BASE ### diff --git a/boards/.intel_apl.yml b/boards/.intel_apl.yml index b5e1602c05e004226159c79271833981718233db..44003feb8d38b1488a0aacaf73ca5cd79e57da29 100644 --- a/boards/.intel_apl.yml +++ b/boards/.intel_apl.yml @@ -1,3 +1,7 @@ +######################## +#### EDGEHOG THINGS #### +######################## + build-edgehog-intel-apl: extends: .build variables: &build-edgehog-intel-apl @@ -16,4 +20,5 @@ deploy-edgehog-intel-apl: <<: *build-edgehog-intel-apl UBOOT_FILE: none KERNEL_FILE: none - AZURE_PATH: apollolake/Yocto \ No newline at end of file + AZURE_PATH: apollolake/Yocto + IMAGE_NAME: edgehog-things-image \ No newline at end of file diff --git a/boards/.tanaro.yml b/boards/.tanaro.yml index 61667dd7f2ece046eeddc46dd4213e6835bc5a75..fbb03b2aca5569c3fa0714e6f1f65496d5bde93e 100644 --- a/boards/.tanaro.yml +++ b/boards/.tanaro.yml @@ -21,7 +21,7 @@ deploy-edgehog-tanaro: UBOOT_FILE: u-boot.bin KERNEL_FILE: Image AZURE_PATH: imx8/tanaro - IMAGE_NAME: edgehog-base-image + IMAGE_NAME: edgehog-things-image ############################# ### EDGEHOG EMBEDDED BASE ### diff --git a/manifest-pipeline-yocto.yml b/manifest-pipeline-yocto.yml index 0cfb4b733241d3031278a4d1d03da9c647adc318..62e7ad10fbaee0496b040313880a6d82a112e2a0 100644 --- a/manifest-pipeline-yocto.yml +++ b/manifest-pipeline-yocto.yml @@ -264,6 +264,7 @@ retrigger: TAG_NAME=${CI_COMMIT_TAG} AZURE_STORAGE_SAS_TOKEN="${AZURE_STORAGE_PUBLIC_SAS_TOKEN}" AZURE_CONTAINER_NAME="${AZURE_PUBLIC_CONTAINER_NAME}" + AZURE_PATH="${AZURE_PATH}/edgehog" fi - | uboot_filename="seco_"$PROCESSOR"_"$BOARD"_uboot_"$KERNEL"_"$TAG_NAME"_"$DEPLOY_DATE".tar.gz" @@ -359,27 +360,27 @@ retrigger: echo "Finishing Kernel upload";; esac - # echo "##################################################################" - # echo "###################### FILESYSTEM ##############################" - # echo "##################################################################" - # find $BASE_DIRECTORY/$ART_PATH -iname *."$FS_EXTENSION" \ - # -exec cp -L {} $BASE_DIRECTORY/filesystemTMP.tar.bz2 \; - # mv filesystemTMP.tar.bz2 $BASE_DIRECTORY/$filesystem_name - # az storage blob upload --account-name $AZURE_STORAGE_ACCOUNT \ - # --sas-token $AZURE_STORAGE_SAS_TOKEN \ - # --container-name $AZURE_CONTAINER_NAME \ - # --file $BASE_DIRECTORY/$filesystem_name \ - # --name $AZURE_PATH/$TAG_NAME/$filesystem_name \ - # --overwrite - - # if [ ! -n "$CI_COMMIT_TAG" ]; then - # az storage blob upload --account-name $AZURE_STORAGE_ACCOUNT \ - # --sas-token $AZURE_STORAGE_SAS_TOKEN \ - # --container-name $AZURE_CONTAINER_NAME \ - # --file $BASE_DIRECTORY/$filesystem_name \ - # --name $AZURE_PATH/$TAG_NAME/$filesystem_name_latest \ - # --overwrite - # fi + echo "##################################################################" + echo "###################### FILESYSTEM ##############################" + echo "##################################################################" + find $BASE_DIRECTORY/$ART_PATH -iname *."$FS_EXTENSION" \ + -exec cp -L {} $BASE_DIRECTORY/filesystemTMP.tar.bz2 \; + mv filesystemTMP.tar.bz2 $BASE_DIRECTORY/$filesystem_name + az storage blob upload --account-name $AZURE_STORAGE_ACCOUNT \ + --sas-token $AZURE_STORAGE_SAS_TOKEN \ + --container-name $AZURE_CONTAINER_NAME \ + --file $BASE_DIRECTORY/$filesystem_name \ + --name $AZURE_PATH/$TAG_NAME/$filesystem_name \ + --overwrite + + if [ ! -n "$CI_COMMIT_TAG" ]; then + az storage blob upload --account-name $AZURE_STORAGE_ACCOUNT \ + --sas-token $AZURE_STORAGE_SAS_TOKEN \ + --container-name $AZURE_CONTAINER_NAME \ + --file $BASE_DIRECTORY/$filesystem_name \ + --name $AZURE_PATH/$TAG_NAME/$filesystem_name_latest \ + --overwrite + fi echo "##################################################################" echo "####################### BUNDLE FILE ############################" @@ -467,6 +468,7 @@ retrigger: TAG_NAME=${CI_COMMIT_TAG} AZURE_STORAGE_SAS_TOKEN="${AZURE_STORAGE_PUBLIC_SAS_TOKEN}" AZURE_CONTAINER_NAME="${AZURE_PUBLIC_CONTAINER_NAME}" + AZURE_PATH="${AZURE_PATH}/edgehog" fi echo "##################################################################" >> Link_report_$BOARD.txt @@ -488,20 +490,24 @@ retrigger: bundle_filename_latest="seco_"$PROCESSOR"_"$BOARD"_edgehog-bundle_"$KERNEL"_"$TAG_NAME"_latest.raucb" if [ "$CI_JOB_STATUS" == "success" ]; then - echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$uboot_filename) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt - echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$kernel_filename) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt - # echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$filesystem_name) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$uboot_filename) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$kernel_filename) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$bundle_filename) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + fi + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$filesystem_name) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$image_name) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$bmap_name) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt - echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$bundle_filename) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt if [ ! -n "$CI_COMMIT_TAG" ]; then - echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$uboot_filename_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt - echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$kernel_filename_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt - # echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$filesystem_name_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$uboot_filename_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$kernel_filename_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$bundle_filename_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt + fi + echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$filesystem_name_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$image_name_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$bmap_name_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt - echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$TAG_NAME/$bundle_filename_latest) | sed -E 's/\?s.*//' >> Link_report_$BOARD.txt fi else echo -e "JOBS FAILED" >> Link_report_$BOARD.txt @@ -630,6 +636,8 @@ release: - if: $CI_COMMIT_TAG script: - | + cat Link_report.txt + cat changelog_link.txt rm -rf release.sh echo "#!/bin/bash" >> release.sh echo "" >> release.sh