Checking the rev parsing

This commit is contained in:
andrewc
2025-05-21 13:01:42 +10:00
parent 387a8d9b68
commit 57ef513fe5

View File

@@ -171,12 +171,14 @@ image:
if [[ $CI_COMMIT_BRANCH == "main" ]]; then if [[ $CI_COMMIT_BRANCH == "main" ]]; then
DRY="" DRY=""
fi fi
echo "Revs: $pcb_rev, $assembly_rev"
python -m kintree.kintree_cli $DRY -p $CI_PROJECT_DIR/Fabrication/$f --assembly "{'ipn': '$name', 'rev': '($pcb_rev, $assembly_rev)', 'image': ['$pcb_im', '$pcba_im'], 'desc': '$desc_suffix', 'attachments': [$pcb_attach, $pcba_attach]}" --settings $KINTREE_SETT --digi_token token_storage.json || FAIL=1 python -m kintree.kintree_cli $DRY -p $CI_PROJECT_DIR/Fabrication/$f --assembly "{'ipn': '$name', 'rev': '($pcb_rev, $assembly_rev)', 'image': ['$pcb_im', '$pcba_im'], 'desc': '$desc_suffix', 'attachments': [$pcb_attach, $pcba_attach]}" --settings $KINTREE_SETT --digi_token token_storage.json || FAIL=1
done done
# - cp token_storage.json /tmp # - cp token_storage.json /tmp
- | - |
cat /tmp/token_storage.json cd $CI_PROJECT_DIR
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file /tmp/token_storage.json $url cat token_storage.json
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file token_storage.json $url
- exit $FAIL - exit $FAIL
# USE PRIVATE-TOKEN to upload from gitlab-ci # USE PRIVATE-TOKEN to upload from gitlab-ci