mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Upload build-log.txt if it exists.
This commit is contained in:
parent
525140a278
commit
771cdccbd3
@ -111,6 +111,10 @@ function upload_artifacts_and_build_result() {
|
|||||||
gsutil -m -q -o "GSUtil:use_magicfile=True" cp -a "${gcs_acl}" -r -c \
|
gsutil -m -q -o "GSUtil:use_magicfile=True" cp -a "${gcs_acl}" -r -c \
|
||||||
-z log,txt,xml "${artifacts_path}" "${gcs_build_path}/artifacts" || continue
|
-z log,txt,xml "${artifacts_path}" "${gcs_build_path}/artifacts" || continue
|
||||||
fi
|
fi
|
||||||
|
if [[ -e "${WORKSPACE}/build-log.txt" ]]; then
|
||||||
|
echo "Uploading build log"
|
||||||
|
gsutil -q cp -Z -a "${gcs_acl}" "${WORKSPACE}/build-log.txt" "${gcs_build_path}"
|
||||||
|
fi
|
||||||
# Mark this build as the latest completed.
|
# Mark this build as the latest completed.
|
||||||
echo "Marking build ${BUILD_NUMBER} as the latest completed build"
|
echo "Marking build ${BUILD_NUMBER} as the latest completed build"
|
||||||
echo "${BUILD_NUMBER}" | \
|
echo "${BUILD_NUMBER}" | \
|
||||||
|
Loading…
Reference in New Issue
Block a user