Upload zipped gerbers to inventree PCB part, added revision to jlc zip
file name
This commit is contained in:
@@ -246,7 +246,7 @@ outputs:
|
|||||||
dest: /
|
dest: /
|
||||||
- from_output: JLCPCB_drill
|
- from_output: JLCPCB_drill
|
||||||
dest: /
|
dest: /
|
||||||
output: '%f_JLC.%x'
|
output: '%f_%r_JLC.%x'
|
||||||
groups:
|
groups:
|
||||||
- name: pcb
|
- name: pcb
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ image:
|
|||||||
name_n_rev=$(echo $f | cut -c3- | rev | cut -d'/' -f1 | cut -c9- | rev)
|
name_n_rev=$(echo $f | cut -c3- | rev | cut -d'/' -f1 | cut -c9- | rev)
|
||||||
pcb_im=$fab_path/PCB_$name_n_rev.png
|
pcb_im=$fab_path/PCB_$name_n_rev.png
|
||||||
pcba_im=$fab_path/PCBA_$name_n_rev.png
|
pcba_im=$fab_path/PCBA_$name_n_rev.png
|
||||||
pcb_attach=$(echo "['$fab_path/${name_n_rev}_PCB.pdf']")
|
pcb_attach=$(echo "['$fab_path/${name_n_rev}_PCB.pdf', '$CI_PROJECT_DIR/Fabrication/${name_n_rev}_JLC.zip']")
|
||||||
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']")
|
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
|
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
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user