From 81363a4e5f63f23fd877cd01713a4cdbae08496a Mon Sep 17 00:00:00 2001 From: Pranav K Date: Fri, 7 Jul 2017 12:26:56 -0700 Subject: [PATCH] Use clone uris and commit hash that the CI specifies --- build/Repositories.props | 89 ++++++++++++++++++++-------------------- build/repo.targets | 26 ++++++++++-- 2 files changed, 66 insertions(+), 49 deletions(-) diff --git a/build/Repositories.props b/build/Repositories.props index 280ed354b7..189da53c51 100644 --- a/build/Repositories.props +++ b/build/Repositories.props @@ -2,54 +2,53 @@ dev - git@github.com:aspnet/%(Identity) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/repo.targets b/build/repo.targets index c14f71af01..7aa7207cf2 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -199,27 +199,45 @@ XmlInputPath="$(RepositoryFileWithCommit)" Query="//Repository[@Include='%(Repository.Identity)']/@Commit" Value="%(Repository.Commit)" /> + + + + <_CloneUrl>$([System.Environment]::GetEnvironmentVariable("vcsroot.%(Repository.Identity).url")) + <_CommitHash>$([System.Environment]::GetEnvironmentVariable("build.vcs.number.%(Repository.Identity)")) + $(_CloneRepositoryRoot)%(Repository.Identity) - - + + + - + + - <_Hash> + <_CommitHash> + <_CloneUrl>