tf-worker: use curl command to retrieve the output log file of the job
Retrieving job's output log file using the 'lavacli' utility failed
more frequently, hence instead use the 'curl' command to retrieve the
log file.
Change-Id: Icb88b742c4d30b9e5f047a7d89059dde8325e177
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
diff --git a/job/tf-worker/run_lava_job.sh b/job/tf-worker/run_lava_job.sh
index f9725b5..7eb67b7 100755
--- a/job/tf-worker/run_lava_job.sh
+++ b/job/tf-worker/run_lava_job.sh
@@ -61,7 +61,7 @@
# Output to the specified directory before uploading artefacts
mkdir -p "${SAVE_OUTPUT}"
-lavacli jobs logs $JOB_ID > "${SAVE_OUTPUT}/job_output.log"
+curl https://lava.oss.arm.com/scheduler/job/$JOB_ID/log_file/plain > "${SAVE_OUTPUT}/job_output.log"
cp ${SAVE_OUTPUT}/job_output.log $workspace/artefacts
# Send file(s) to artefacts receiver