File tree Expand file tree Collapse file tree
testcases/quickstart-agent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -e
23
34cd /app/testcases/quickstart-agent
45
89
910# Authenticate with UiPath
1011echo " Authenticating with UiPath..."
11- uv run uipath auth --client-id=" $CLIENT_ID " --client-secret=" $CLIENT_SECRET " --base-url=" $BASE_URL " --force
12+ uv run uipath auth --client-id=" $CLIENT_ID " --client-secret=" $CLIENT_SECRET " --base-url=" $BASE_URL "
13+
14+ # Load the auth configuration into environment
15+ # Check what uipath auth created
16+ echo " === Checking auth artifacts ==="
17+ if [ -f ~ /.config/uipath/auth.json ]; then
18+ echo " Auth config exists:"
19+ cat ~ /.config/uipath/auth.json
20+
21+ # Extract and export the required environment variables
22+ export UIPATH_URL=$( jq -r ' .base_url // .url // empty' ~ /.config/uipath/auth.json)
23+ export UIPATH_ACCESS_TOKEN=$( jq -r ' .access_token // .token // empty' ~ /.config/uipath/auth.json)
24+
25+ echo " UIPATH_URL: $UIPATH_URL "
26+ echo " UIPATH_ACCESS_TOKEN: ${UIPATH_ACCESS_TOKEN: 0: 20} ..."
27+ fi
28+ echo " ==============================="
1229
1330# Pack the agent
1431echo " Packing agent..."
You can’t perform that action at this time.
0 commit comments