Set version and job version in started.json/metadata.json

pull/6/head
Erick Fejta 2016-11-11 08:43:26 -08:00
parent 3e6210994c
commit 3c22444b47
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ function find_version() {
function print_started() {
local metadata_keys=$(compgen -e | grep ^BUILD_METADATA_)
echo "{"
echo " \"version\": \"${version}\","
echo " \"version\": \"${version}\"," # TODO(fejta): retire
echo " \"job-version\": \"${version}\","
echo " \"timestamp\": ${timestamp},"
if [[ -n "${metadata_keys}" ]]; then
# Any exported variables of the form BUILD_METADATA_KEY=VALUE