Fix the query of the log in jenkins log. Use the lava website url and not the
lava API url.
JIRA: SPEC-1178
Change-Id: I9ddc48b13e91a91aa2e53c768aa02f2ae12e5a99
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
JOB_OUTPUT="${JOB_BASE}_output.yaml"
JOB_LOG="${JOB_BASE}_output.log"
-curl -s -o $JOB_OUTPUT $full_url/scheduler/job/$job_id/log_file/plain
+curl -s -o $JOB_OUTPUT $lava_url/scheduler/job/$job_id/log_file/plain
cat $JOB_OUTPUT | grep '"target",' | sed -e 's#- {"dt".*"lvl".*"msg":."##g' -e 's#"}$##g' | tee $JOB_LOG
echo "####"
fi
# LAVA URL with username
- full_url=${url/:\/\//:\/\/${user}\@}
+ lava_url=${url/:\/\//:\/\/${user}\@}
+ full_url=${lava_url}
full_url+="RPC2/" # entry point for XML-RPC API
echo "LAVA auth-add for lab: $lab, URL: $full_url"