mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
Echo start and finish times to build log
This commit is contained in:
parent
1c6a223eaa
commit
5aead14c62
@ -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 "{"
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user