Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
infrastructure
gitlab-ci
Commits
3b974a49
Commit
3b974a49
authored
2 years ago
by
Lorenzo Pagliai
Browse files
Options
Downloads
Patches
Plain Diff
[PACKAGE DEPLOY] Insert U-Boot and Kernel deploy in Embedded image
parent
f05f9332
No related branches found
No related tags found
No related merge requests found
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifest-pipeline-yocto.yml
+53
-55
53 additions, 55 deletions
manifest-pipeline-yocto.yml
with
53 additions
and
55 deletions
manifest-pipeline-yocto.yml
+
53
−
55
View file @
3b974a49
...
@@ -318,8 +318,33 @@ retrigger:
...
@@ -318,8 +318,33 @@ retrigger:
bundle_filename="seco_"$PROCESSOR"_"$BOARD"_edgehog-bundle_"$KERNEL"_"$TAG_NAME"_"$DEPLOY_DATE".raucb"
bundle_filename="seco_"$PROCESSOR"_"$BOARD"_edgehog-bundle_"$KERNEL"_"$TAG_NAME"_"$DEPLOY_DATE".raucb"
bundle_filename_latest="seco_"$PROCESSOR"_"$BOARD"_edgehog-bundle_"$KERNEL"_"$TAG_NAME"_latest.raucb"
bundle_filename_latest="seco_"$PROCESSOR"_"$BOARD"_edgehog-bundle_"$KERNEL"_"$TAG_NAME"_latest.raucb"
if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then
if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then
case none in
echo "##################################################################"
echo "####################### BUNDLE FILE ############################"
echo "##################################################################"
#Copy the bundle file and rename it
find $ART_PATH -iname *"$MACHINE.raucb" -exec cp -L {} $BASE_DIRECTORY/ \;
mv *raucb $BASE_DIRECTORY/$bundle_filename
az storage blob upload --account-name $AZURE_STORAGE_ACCOUNT \
--sas-token $AZURE_STORAGE_SAS_TOKEN \
--container-name $AZURE_CONTAINER_NAME \
--file $BASE_DIRECTORY/$bundle_filename \
--name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename \
--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/$bundle_filename \
--name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename_latest \
--overwrite
fi
fi
case none in
*${UBOOT_FILE}*) echo "Not deploying U-Boot for this board since not present";;
*${UBOOT_FILE}*) echo "Not deploying U-Boot for this board since not present";;
* )
* )
echo "##################################################################"
echo "##################################################################"
...
@@ -351,9 +376,9 @@ retrigger:
...
@@ -351,9 +376,9 @@ retrigger:
--overwrite
--overwrite
fi
fi
echo "Finishing U-Boot upload";;
echo "Finishing U-Boot upload";;
esac
esac
case none in
case none in
*${KERNEL_FILE}*) echo "Not deploying Kernel for this board since not present";;
*${KERNEL_FILE}*) echo "Not deploying Kernel for this board since not present";;
* )
* )
echo "##################################################################"
echo "##################################################################"
...
@@ -396,31 +421,7 @@ retrigger:
...
@@ -396,31 +421,7 @@ retrigger:
--overwrite
--overwrite
fi
fi
echo "Finishing Kernel upload";;
echo "Finishing Kernel upload";;
esac
esac
echo "##################################################################"
echo "####################### BUNDLE FILE ############################"
echo "##################################################################"
#Copy the bundle file and rename it
find $ART_PATH -iname *"$MACHINE.raucb" -exec cp -L {} $BASE_DIRECTORY/ \;
mv *raucb $BASE_DIRECTORY/$bundle_filename
az storage blob upload --account-name $AZURE_STORAGE_ACCOUNT \
--sas-token $AZURE_STORAGE_SAS_TOKEN \
--container-name $AZURE_CONTAINER_NAME \
--file $BASE_DIRECTORY/$bundle_filename \
--name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename \
--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/$bundle_filename \
--name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename_latest \
--overwrite
fi
fi
echo "##################################################################"
echo "##################################################################"
echo "###################### FILESYSTEM ##############################"
echo "###################### FILESYSTEM ##############################"
...
@@ -535,42 +536,39 @@ retrigger:
...
@@ -535,42 +536,39 @@ retrigger:
if [ "$CI_JOB_STATUS" == "success" ]; then
if [ "$CI_JOB_STATUS" == "success" ]; then
if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then
if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then
case none in
*${UBOOT_FILE}*) echo "Not deployed U-Boot for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$uboot_filename) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
case none in
*${KERNEL_FILE}*) echo "Not deployed Kernel for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$kernel_filename) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
fi
fi
case none in
*${UBOOT_FILE}*) echo "Not deployed U-Boot for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$uboot_filename) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
case none in
*${KERNEL_FILE}*) echo "Not deployed Kernel for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$kernel_filename) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$filesystem_name) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$filesystem_name) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$image_name) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$image_name) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bmap_name) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bmap_name) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
if [ ! -n "$CI_COMMIT_TAG" ]; then
if [ ! -n "$CI_COMMIT_TAG" ]; then
if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then
if [[ "${CI_JOB_NAME}" != *"embedded"* ]]; then
case none in
*${UBOOT_FILE}*) echo "Not deployed U-Boot for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$uboot_filename_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
case none in
*${KERNEL_FILE}*) echo "Not deployed Kernel for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$kernel_filename_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bundle_filename_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
fi
fi
case none in
*${UBOOT_FILE}*) echo "Not deployed U-Boot for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$uboot_filename_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
case none in
*${KERNEL_FILE}*) echo "Not deployed Kernel for this board since not present";;
* )
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$kernel_filename_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt;;
esac
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$filesystem_name_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$filesystem_name_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$image_name_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$image_name_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bmap_name_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
echo -e $(az storage blob url --container-name $AZURE_CONTAINER_NAME --name $AZURE_PATH/$DEPLOY_PATH/$bmap_name_latest) | sed -E 's/\?s.*//' >> Link_report_"$BOARD"_"$IMAGE_NAME".txt
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment