Echo start and finish times to build log

This commit is contained in:
Jeff Grafton 2016-02-11 13:11:45 -08:00
parent 1c6a223eaa
commit 5aead14c62
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,8 @@ readonly result="$1"
readonly timestamp=$(date +%s)
readonly location="gs://kubernetes-jenkins/logs/${JOB_NAME}/${BUILD_NUMBER}/finished.json"
echo -n 'Run finished at '; date -d "@${timestamp}"
echo "Uploading build result to: ${location}"
gsutil -q cp -a "public-read" <(
echo "{"

View File

@ -28,6 +28,8 @@ version=""
readonly timestamp=$(date +%s)
readonly location="gs://kubernetes-jenkins/logs/${JOB_NAME}/${BUILD_NUMBER}/started.json"
echo -n 'Run starting at '; date -d "@${timestamp}"
# Try to discover the kubernetes version.
if [[ -e "version" ]]; then
version=$(cat "version")