Add description to PCB and PCBA parts
This commit is contained in:
Submodule .scripts/ki-ntree updated: bebdba04aa...404d44352c
11
kibot-ci.yml
11
kibot-ci.yml
@@ -126,6 +126,10 @@ image:
|
||||
done
|
||||
|
||||
boms:
|
||||
- ls /gcl-builds/Fabrication/999999-test/
|
||||
- client=$(echo $CI_PROJECT_PATH | cut -d'/' -f3 | sed -r 's/\<./\U&/g')
|
||||
- proj=$(echo $CI_PROJECT_NAME | tr -d '0123456789' | tr '-' ' ' | sed -r 's/\<./\U&/g')
|
||||
- desc_suffix=$(echo $client $proj)
|
||||
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
|
||||
- apt remove libcurl4 -y
|
||||
- apt update && apt install curl pip -y && pip install --break-system-packages poetry
|
||||
@@ -149,7 +153,10 @@ image:
|
||||
do
|
||||
echo $f
|
||||
name=$(echo $f | cut -c3- | cut -d'-' -f1)A
|
||||
poetry run python -m kintree_cli -p $CI_PROJECT_DIR/Fabrication/$f --assembly "{'ipn': '$name', 'rev': '$TAG'}" --settings $KINTREE_SETT --digi_token token_storage.json || FAIL=1
|
||||
fab_path=$CI_PROJECT_DIR/Fabrication/$(dirname $f | cut -c3-)
|
||||
pcb_im=$fab_path/PCB_$(echo $f | cut -c3- | rev | cut -d'/' -f1 | cut -c9- | rev).png
|
||||
pcba_im=$fab_path/PCBA_$(echo $f | cut -c3- | rev | cut -d'/' -f1 | cut -c9- | rev).png
|
||||
poetry run python -m kintree_cli -p $CI_PROJECT_DIR/Fabrication/$f --assembly "{'ipn': '$name', 'rev': '$TAG', 'image': ['$pcb_im', '$pcba_im'], 'desc': '$desc_suffix'}" --settings $KINTREE_SETT --digi_token token_storage.json || FAIL=1
|
||||
done
|
||||
# - cp token_storage.json /tmp
|
||||
- |
|
||||
@@ -267,6 +274,8 @@ outputs_all:
|
||||
inventree_job:
|
||||
stage: inventree
|
||||
needs:
|
||||
- job: output_mech
|
||||
artifacts: true
|
||||
- job: outputs_all
|
||||
artifacts: true
|
||||
rules:
|
||||
|
||||
Reference in New Issue
Block a user