From fae53f7ea24651a63b8f27227b3551a5605169bc Mon Sep 17 00:00:00 2001 From: lguohan Date: Sun, 16 Apr 2017 01:17:22 -0700 Subject: [PATCH] [build]: add commit id and build number in sonic_version (#508) --- build_debian.sh | 2 ++ src/sonic-utilities | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build_debian.sh b/build_debian.sh index a796a243363d..9840280fc849 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -264,7 +264,9 @@ build_version: $(sonic_get_version) debian_version: $(cat $FILESYSTEM_ROOT/etc/debian_version) kernel_version: $kversion asic_type: $sonic_asic_platform +commit_id: $(git rev-parse --short HEAD) build_date: $(date -u) +build_number: ${BUILD_NUMBER:-0} built_by: $USER@$BUILD_HOSTNAME EOF diff --git a/src/sonic-utilities b/src/sonic-utilities index fcfefdb0b96e..5df8acb5ef48 160000 --- a/src/sonic-utilities +++ b/src/sonic-utilities @@ -1 +1 @@ -Subproject commit fcfefdb0b96ef36a18cb13669a964b196a036436 +Subproject commit 5df8acb5ef48eb34e67b0b5a693fa9f923a79da1