From 83adfd2484e1485c07a2c97b163618dec12cb32e Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Mon, 18 Sep 2017 13:06:07 -0700 Subject: [PATCH] Find commit hashes from the TeamCity environment variables --- build/repo.targets | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/repo.targets b/build/repo.targets index ec54c6583b..552c154969 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -202,6 +202,16 @@ + + + <_RepositoryName>$([System.String]::new('%(Repository.Identity)').Replace('.', '_')) + <_CloneUrl>$([System.Environment]::GetEnvironmentVariable("BUILD_VCS_URL_$(_RepositoryName)")) + <_CommitHash>$([System.Environment]::GetEnvironmentVariable("BUILD_VCS_NUMBER_$(_RepositoryName)")) +