feat(pipeline): show errors when creating app

This commit is contained in:
Christopher Hase 2025-08-14 10:47:13 +02:00
parent 75130328fd
commit 9002e8dc18

View file

@ -37,7 +37,7 @@ jobs:
-
name: Create edgeXR App
run: |
EDGEXR_TOKEN="$(curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/login -H 'Content-Type: application/json' --data '{"password": "'${EDGEXR_PLATFORM_PASSWORD}'","username": "'${EDGEXR_PLATFORM_USERNAME}'"}' -s | jq -r .token)"
EDGEXR_TOKEN="$(curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/login -H 'Content-Type: application/json' --data '{"password": "'${EDGEXR_PLATFORM_PASSWORD}'","username": "'${EDGEXR_PLATFORM_USERNAME}'"}' -s -S | jq -r .token)"
CREATEAPP_JSON=$(cat <<EOF
{
@ -61,4 +61,4 @@ jobs:
EOF
)
curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/CreateApp -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -s --data "$CREATEAPP_JSON"
curl -X POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/CreateApp -H 'Content-Type: application/json' -H "Authorization: Bearer $EDGEXR_TOKEN" -s -S --data "$CREATEAPP_JSON"