diff options
author | Chris Evich <cevich@redhat.com> | 2019-01-17 14:04:24 -0500 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-01-17 14:32:28 -0500 |
commit | 7124ef71b566bbcdf0faa77961e90ab6ff0f03c5 (patch) | |
tree | 609c584419393044331b48d39ad788b243171586 /contrib/cirrus/build_vm_images.sh | |
parent | 0e3264ae4de85d2c974106582f80fd8cadab8bb8 (diff) | |
download | podman-7124ef71b566bbcdf0faa77961e90ab6ff0f03c5.tar.gz podman-7124ef71b566bbcdf0faa77961e90ab6ff0f03c5.tar.bz2 podman-7124ef71b566bbcdf0faa77961e90ab6ff0f03c5.zip |
cirrus: Record start/end time of important things
Previously we only reported the date/time at the beginning of a run
since it's not available in the Cirrus-CI system. This commit
generalizes the solution, recording start/end times for all major
events.
Also the timestamps are recorded into a local file on the VMs. This
is intended for future use, for example tracking execution-time
trends.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/build_vm_images.sh')
-rwxr-xr-x | contrib/cirrus/build_vm_images.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/cirrus/build_vm_images.sh b/contrib/cirrus/build_vm_images.sh index ecdf1d877..ee45b1ead 100755 --- a/contrib/cirrus/build_vm_images.sh +++ b/contrib/cirrus/build_vm_images.sh @@ -23,6 +23,8 @@ SCRIPT_BASE $SCRIPT_BASE PACKER_BASE $PACKER_BASE " +record_timestamp "cache-image build start" + show_env_vars # Everything here is running on the 'image-builder-image' GCE image @@ -50,3 +52,5 @@ make libpod_images \ SCRIPT_BASE=$SCRIPT_BASE \ PACKER_BASE=$PACKER_BASE \ BUILT_IMAGE_SUFFIX=$BUILT_IMAGE_SUFFIX + +record_timestamp "cache-image build end" |