Merge pull request #26812 from spxtr/redirect

Automatic merge from submit-queue

Upload build-log.txt if it exists.

Companion to https://github.com/kubernetes/test-infra/pull/112.
pull/6/head
k8s-merge-robot 2016-06-06 10:22:53 -07:00
commit b6b079b1e9
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@ function upload_artifacts_and_build_result() {
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
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.
echo "Marking build ${BUILD_NUMBER} as the latest completed build"
echo "${BUILD_NUMBER}" | \