diff mbox series

[isar-cip-core,2/4] ci: submit_lava: Fix access to LAVA API

Message ID 1249955f41818451dc5674d510f611fdc2c64fd7.1719642474.git.jan.kiszka@siemens.com (mailing list archive)
State Accepted
Headers show
Series ci: add LAVA live output, fix and clean up submission script | expand

Commit Message

Jan Kiszka June 29, 2024, 6:27 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

We need to provide the token in order to retrieve job results.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 scripts/submit_lava.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/submit_lava.sh b/scripts/submit_lava.sh
index 2464c291..48c5d3c1 100755
--- a/scripts/submit_lava.sh
+++ b/scripts/submit_lava.sh
@@ -9,7 +9,7 @@  set -e
 ################################################################################
 LAVA_TEMPLATES="tests/templates"
 LAVA_JOBS_URL="https://${CIP_LAVA_LAB_SERVER:-lava.ciplatform.org}/scheduler/job"
-LAVA_API_URL="https://${CIP_LAVA_LAB_SERVER:-lava.ciplatform.org}/api/v0.2"
+LAVA_API_URL="https://$CIP_LAVA_LAB_USER:$CIP_LAVA_LAB_TOKEN@${CIP_LAVA_LAB_SERVER:-lava.ciplatform.org}/api/v0.2"
 LAVACLI_ARGS="--uri https://$CIP_LAVA_LAB_USER:$CIP_LAVA_LAB_TOKEN@${CIP_LAVA_LAB_SERVER:-lava.ciplatform.org}/RPC2"
 SQUAD_GROUP="cip-core"
 SQUAD_WATCH_JOBS_URL="${CIP_SQUAD_URL}/api/watchjob"