Skip to content

Commit 6a4b485

Browse files
committed
android: boottime: add support for uploading archives to SQUAD
via specifying the SQUAD_UPLOAD_URL variable. To be noted, to avoid leak of tokens, the SQUAD_ARCHIVE_SUBMIT_TOKEN used for uploading authentication is not supported to be defined in the job definition in the plain text format, it must be defined as one profile managed token of the submitter Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
1 parent bfe2325 commit 6a4b485

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

automated/android/boottime/boottime.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ params:
3333
# Specify url and token for file uploading.
3434
URL: "https://archive.validation.linaro.org/artifacts/team/qa/"
3535
TOKEN: ""
36+
# The SQUAD url to be used to upload the result and log files.
37+
# see https://squad.readthedocs.io/en/latest/intro.html#submitting-results.
38+
# SQUAD_ARCHIVE_SUBMIT_TOKEN is used for uploading authentication,
39+
# and must be defined by the submitter as one profile managed token
40+
SQUAD_UPLOAD_URL: ""
3641

3742
run:
3843
steps:
3944
- cd ./automated/android/boottime
4045
- ./boottime.sh -S "${SKIP_INSTALL}" -t "${BOOT_TIMEOUT}" -o "${OPERATION}" -n "${COLLECT_NO}" -v "${ANDROID_VERSION}"
41-
- if [ "${OPERATION}" = "ANALYZE" ]; then ../../utils/upload-to-artifactorial.sh -a "output/boottime.tgz" -u "${URL}" -t "${TOKEN}"; fi
46+
- if [ -n "${SQUAD_UPLOAD_URL}" ] && [ "${OPERATION}" = "ANALYZE" ]; then ../../utils/upload-to-squad.sh -a "output/boottime.tgz" -u "${SQUAD_UPLOAD_URL}"; fi
47+
- if [ -z "${SQUAD_UPLOAD_URL}" ] && [ "${OPERATION}" = "ANALYZE" ]; then ../../utils/upload-to-artifactorial.sh -a "output/boottime.tgz" -u "${URL}" -t "${TOKEN}"; fi
4248
- ../../utils/send-to-lava.sh ./output/boot_result.txt
4349
- ../../utils/send-to-lava.sh ./output/result.txt

0 commit comments

Comments
 (0)