mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #36654 from fejta/meta
Automatic merge from submit-queue Set version and job-version in started.json/metadata.json Ref https://github.com/kubernetes/test-infra/issues/1032 We can delete version once all CI jobs are migrated to bootstrap
This commit is contained in:
commit
dd681f91cc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user