Skip to content

Commit

Permalink
[build]: add commit id and build number in sonic_version (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored and Shuotian Cheng committed Apr 16, 2017
1 parent 701c1eb commit fae53f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/sonic-utilities

0 comments on commit fae53f7

Please sign in to comment.