Added attachments to PCB and PCBA parts
This commit is contained in:
Submodule .scripts/ki-ntree updated: c12e97f9cf...c836f1ab4d
@@ -177,6 +177,14 @@ outputs:
|
||||
pcb: false
|
||||
old: KIBOT_TAG-0
|
||||
|
||||
- name: 'interactive_bom'
|
||||
comment: "Interactive html BOM"
|
||||
type: ibom
|
||||
dir: .
|
||||
options:
|
||||
output: '%f_%r_%i.%x'
|
||||
dark_mode: true
|
||||
|
||||
- name: JLCPCB_gerbers
|
||||
comment: Gerbers compatible with JLCPCB
|
||||
type: gerber
|
||||
@@ -246,6 +254,7 @@ groups:
|
||||
- neo_position
|
||||
- print_pcb
|
||||
- stencil
|
||||
- interactive_bom
|
||||
|
||||
- name: sch
|
||||
outputs:
|
||||
|
||||
@@ -154,9 +154,12 @@ image:
|
||||
echo $f
|
||||
name=$(echo $f | cut -c3- | cut -d'-' -f1)A
|
||||
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
|
||||
name_n_rev=$(echo $f | cut -c3- | rev | cut -d'/' -f1 | cut -c9- | rev)
|
||||
pcb_im=$fab_path/PCB_$name_n_rev.png
|
||||
pcba_im=$fab_path/PCBA_$name_n_rev.png
|
||||
pcb_attach=$(echo "['$fab_path/${name_n_rev}_PCB.pdf']")
|
||||
pcba_attach=$(echo "['$fab_path/${name_n_rev}_schematic.pdf', '$fab_path/${name_n_rev}_bom.csv', '$fab_path/${name_n_rev}-neo-pos_top.csv', '$fab_path/${name_n_rev}-neo-pos_bot.csv', '$fab_path/${name_n_rev}_ibom.html']")
|
||||
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', 'attachments': [$pcb_attach, $pcba_attach]}" --settings $KINTREE_SETT --digi_token token_storage.json || FAIL=1
|
||||
done
|
||||
# - cp token_storage.json /tmp
|
||||
- |
|
||||
|
||||
Reference in New Issue
Block a user