Clone repositories over https

This commit is contained in:
Pranav K 2017-08-04 18:02:04 -07:00
parent 16b430ec9f
commit 418f58f31d
2 changed files with 61 additions and 45 deletions

View File

@ -6,49 +6,49 @@
</ItemDefinitionGroup>
<ItemGroup>
<Repository Include="Antiforgery" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="AzureIntegration" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="BasicMiddleware" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="BrowserLink" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Caching" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Common" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Configuration" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="CORS" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="DataProtection" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="DependencyInjection" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Diagnostics" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="DotNetTools" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="EntityFramework" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="EventNotification" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="FileSystem" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Hosting" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="HtmlAbstractions" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="HttpAbstractions" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="HttpSysServer" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Identity" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="IISIntegration" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="JavaScriptServices" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="JsonPatch" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="KestrelHttpServer" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Localization" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Logging" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="MetaPackages" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Microsoft.Data.Sqlite" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="MusicStore" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Mvc" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="MvcPrecompilation" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Options" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Proxy" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Razor" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="ResponseCaching" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Routing" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Scaffolding" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Security" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="ServerTests" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Session" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="SignalR" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="StaticFiles" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Testing" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="WebSockets" Commit="" CloneUrl="git@github.com:aspnet/%(Identity)" />
<Repository Include="Antiforgery" Commit="" CloneUrl="" />
<Repository Include="AzureIntegration" Commit="" CloneUrl="" />
<Repository Include="BasicMiddleware" Commit="" CloneUrl="" />
<Repository Include="BrowserLink" Commit="" CloneUrl="" />
<Repository Include="Caching" Commit="" CloneUrl="" />
<Repository Include="Common" Commit="" CloneUrl="" />
<Repository Include="Configuration" Commit="" CloneUrl="" />
<Repository Include="CORS" Commit="" CloneUrl="" />
<Repository Include="DataProtection" Commit="" CloneUrl="" />
<Repository Include="DependencyInjection" Commit="" CloneUrl="" />
<Repository Include="Diagnostics" Commit="" CloneUrl="" />
<Repository Include="DotNetTools" Commit="" CloneUrl="" />
<Repository Include="EntityFramework" Commit="" CloneUrl="" />
<Repository Include="EventNotification" Commit="" CloneUrl="" />
<Repository Include="FileSystem" Commit="" CloneUrl="" />
<Repository Include="Hosting" Commit="" CloneUrl="" />
<Repository Include="HtmlAbstractions" Commit="" CloneUrl="" />
<Repository Include="HttpAbstractions" Commit="" CloneUrl="" />
<Repository Include="HttpSysServer" Commit="" CloneUrl="" />
<Repository Include="Identity" Commit="" CloneUrl="" />
<Repository Include="IISIntegration" Commit="" CloneUrl="" />
<Repository Include="JavaScriptServices" Commit="" CloneUrl="" />
<Repository Include="JsonPatch" Commit="" CloneUrl="" />
<Repository Include="KestrelHttpServer" Commit="" CloneUrl="" />
<Repository Include="Localization" Commit="" CloneUrl="" />
<Repository Include="Logging" Commit="" CloneUrl="" />
<Repository Include="MetaPackages" Commit="" CloneUrl="" />
<Repository Include="Microsoft.Data.Sqlite" Commit="" CloneUrl="" />
<Repository Include="MusicStore" Commit="" CloneUrl="" />
<Repository Include="Mvc" Commit="" CloneUrl="" />
<Repository Include="MvcPrecompilation" Commit="" CloneUrl="" />
<Repository Include="Options" Commit="" CloneUrl="" />
<Repository Include="Proxy" Commit="" CloneUrl="" />
<Repository Include="Razor" Commit="" CloneUrl="" />
<Repository Include="ResponseCaching" Commit="" CloneUrl="" />
<Repository Include="Routing" Commit="" CloneUrl="" />
<Repository Include="Scaffolding" Commit="" CloneUrl="" />
<Repository Include="Security" Commit="" CloneUrl="" />
<Repository Include="ServerTests" Commit="" CloneUrl="" />
<Repository Include="Session" Commit="" CloneUrl="" />
<Repository Include="SignalR" Commit="" CloneUrl="" />
<Repository Include="StaticFiles" Commit="" CloneUrl="" />
<Repository Include="Testing" Commit="" CloneUrl="" />
<Repository Include="WebSockets" Commit="" CloneUrl="" />
</ItemGroup>
</Project>

View File

@ -64,8 +64,22 @@
<Error Text="KOREBUILD_REPOSITORY_EXCLUDE AND KOREBUILD_REPOSITORY_INCLUDE are specified."
Condition="'$(KOREBUILD_REPOSITORY_INCLUDE)' != '' AND '$(KOREBUILD_REPOSITORY_EXCLUDE)' != ''" />
<!--
Determine the protocol to clone individual repositories over. Clone repositories over https,
if Universe was cloned over https
-->
<Exec Command="git config --get remote.origin.url" ConsoleToMSBuild="true" WorkingDirectory="$(RepositoryRoot)">
<Output TaskParameter="ConsoleOutput" PropertyName="UniverseCloneUrl" />
</Exec>
<PropertyGroup>
<_CloneOverHttps Condition="$(UniverseCloneUrl.StartsWith('https'))">true</_CloneOverHttps>
</PropertyGroup>
<ItemGroup>
<Repository Update="%(Identity)" RepositoryPath="$(_CloneRepositoryRoot)%(Identity)" />
<Repository Update="%(Identity)" CloneUrl="git@github.com:aspnet/%(Identity)" Condition="'$(_CloneOverHttps)'!='true'" />
<Repository Update="%(Identity)" CloneUrl="https://github.com/aspnet/%(Identity)" Condition="'$(_CloneOverHttps)'=='true'" />
</ItemGroup>
</Target>
@ -115,7 +129,9 @@
<Exec
Command="$(_CloneArguments) --branch $(CloneBranch)"
Condition="'$(GateBranchExitCode)'!='0'"
WorkingDirectory="$(_CloneRepositoryRoot)" />
WorkingDirectory="$(_CloneRepositoryRoot)"
EnvironmentVariables="GIT_TERMINAL_PROMPT=0"
Timeout="180000" />
<Message Text="Resetting $(CloneRepository) commit to $(CloneRepositoryCommit) ..." Importance="High" Condition="'$(CloneRepositoryCommit)'!=''"/>
<Exec