Commit 3c22444b authored by Erick Fejta's avatar Erick Fejta

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

parent 3e621099
...@@ -131,7 +131,8 @@ function find_version() { ...@@ -131,7 +131,8 @@ function find_version() {
function print_started() { function print_started() {
local metadata_keys=$(compgen -e | grep ^BUILD_METADATA_) local metadata_keys=$(compgen -e | grep ^BUILD_METADATA_)
echo "{" echo "{"
echo " \"version\": \"${version}\"," echo " \"version\": \"${version}\"," # TODO(fejta): retire
echo " \"job-version\": \"${version}\","
echo " \"timestamp\": ${timestamp}," echo " \"timestamp\": ${timestamp},"
if [[ -n "${metadata_keys}" ]]; then if [[ -n "${metadata_keys}" ]]; then
# Any exported variables of the form BUILD_METADATA_KEY=VALUE # Any exported variables of the form BUILD_METADATA_KEY=VALUE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment