Update ki-ntree and handle failing of ki-ntree commands
This commit is contained in:
Submodule .scripts/ki-ntree updated: fbbed8ab43...c434eabe06
@@ -142,16 +142,20 @@ image:
|
|||||||
- !reference [.commands, strip_tag]
|
- !reference [.commands, strip_tag]
|
||||||
- !reference [.commands, get_files]
|
- !reference [.commands, get_files]
|
||||||
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
|
- cd $CI_PROJECT_DIR/.gitlab/.scripts/ki-ntree/
|
||||||
|
- FAIL=0
|
||||||
- |
|
- |
|
||||||
for f in $FILES
|
for f in $FILES
|
||||||
do
|
do
|
||||||
echo $f
|
echo $f
|
||||||
name=$(echo $f | cut -c3- | cut -d'-' -f1)A
|
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
|
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
|
||||||
done
|
done
|
||||||
|
# - cp token_storage.json /tmp
|
||||||
- |
|
- |
|
||||||
cat /tmp/token_storage.json
|
cat /tmp/token_storage.json
|
||||||
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file /tmp/token_storage.json $url
|
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file /tmp/token_storage.json $url
|
||||||
|
- exit $FAIL
|
||||||
|
# USE PRIVATE-TOKEN to upload from gitlab-ci
|
||||||
|
|
||||||
git_tag:
|
git_tag:
|
||||||
- !reference [.commands, strip_tag]
|
- !reference [.commands, strip_tag]
|
||||||
|
|||||||
Reference in New Issue
Block a user