2016-10-12 19:25:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<Target Name="FinishBuild"
|
2018-01-16 22:16:56 +00:00
|
|
|
Condition="'$(IsOrchestratedPublish)' != 'true'"
|
|
|
|
DependsOnTargets="SetArtifactBlobProps;
|
|
|
|
SetChecksumBlobProps;
|
|
|
|
CheckIfAllBuildsHavePublished;
|
2016-10-12 19:25:06 +00:00
|
|
|
FinalizeBuild" />
|
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
<Target Name="SetArtifactBlobProps">
|
|
|
|
<Error Condition="'$(ArtifactCloudDropURL)' == ''" Text="Missing property ArtifactCloudDropURL." />
|
|
|
|
|
|
|
|
<ParseBlobUrl FeedUrl="$(ArtifactCloudDropURL)">
|
|
|
|
<Output TaskParameter="BlobElements" ItemName="BlobElements" />
|
|
|
|
</ParseBlobUrl>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<ArtifactBlobContainerName>%(BlobElements.ContainerName)</ArtifactBlobContainerName>
|
|
|
|
<ArtifactBlobAccountName>%(BlobElements.AccountName)</ArtifactBlobAccountName>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="SetChecksumBlobProps">
|
|
|
|
<Error Condition="'$(ChecksumCloudDropURL)' == ''" Text="Missing property ChecksumCloudDropURL." />
|
|
|
|
|
|
|
|
<ParseBlobUrl FeedUrl="$(ChecksumCloudDropURL)">
|
|
|
|
<Output TaskParameter="BlobElements" ItemName="BlobElements" />
|
|
|
|
</ParseBlobUrl>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<ChecksumBlobContainerName>%(BlobElements.ContainerName)</ChecksumBlobContainerName>
|
|
|
|
<ChecksumBlobAccountName>%(BlobElements.AccountName)</ChecksumBlobAccountName>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
2016-10-12 19:25:06 +00:00
|
|
|
<Target Name="CheckIfAllBuildsHavePublished">
|
|
|
|
<CheckIfAllBuildsHavePublished AccountKey="$(ArtifactCloudDropAccessToken)"
|
2018-01-16 22:16:56 +00:00
|
|
|
AccountName="$(ArtifactBlobAccountName)"
|
|
|
|
ContainerName="$(ArtifactBlobContainerName)"
|
2017-03-01 21:12:16 +00:00
|
|
|
NugetVersion="$(FullNugetVersion)"
|
|
|
|
VersionBadgeMoniker="$(VersionBadgeMoniker)">
|
2016-10-12 19:25:06 +00:00
|
|
|
<Output TaskParameter="HaveAllBuildsPublished" PropertyName="HaveAllBuildsPublished" />
|
|
|
|
</CheckIfAllBuildsHavePublished>
|
|
|
|
</Target>
|
2018-01-16 22:16:56 +00:00
|
|
|
|
|
|
|
<Target Name="FinalizeBuild" Condition=" '$(HaveAllBuildsPublished)' == 'True' ">
|
|
|
|
<CopyBlobsToLatest AccountName="$(ArtifactBlobAccountName)"
|
2016-10-12 19:25:06 +00:00
|
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
2018-01-16 22:16:56 +00:00
|
|
|
ContainerName="$(ArtifactBlobContainerName)"
|
2017-02-09 00:53:01 +00:00
|
|
|
NugetVersion="$(FullNugetVersion)"
|
2016-10-12 19:25:06 +00:00
|
|
|
Channel="$(Channel)"
|
2017-06-13 23:45:29 +00:00
|
|
|
CommitHash="$(CommitHash)"
|
|
|
|
Coherent="$(Coherent)" />
|
2016-10-12 19:25:06 +00:00
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
<CopyBlobsToLatest AccountName="$(ChecksumBlobAccountName)"
|
2016-10-12 19:25:06 +00:00
|
|
|
AccountKey="$(ChecksumCloudDropAccessToken)"
|
2018-01-16 22:16:56 +00:00
|
|
|
ContainerName="$(ChecksumBlobContainerName)"
|
2017-02-09 00:53:01 +00:00
|
|
|
NugetVersion="$(FullNugetVersion)"
|
2016-10-12 19:25:06 +00:00
|
|
|
Channel="$(Channel)"
|
2017-06-13 23:45:29 +00:00
|
|
|
CommitHash="$(CommitHash)"
|
|
|
|
Coherent="$(Coherent)" />
|
2016-10-12 19:25:06 +00:00
|
|
|
|
2017-06-23 13:53:04 +00:00
|
|
|
<UpdateVersionsRepo BranchName="$(BranchName)"
|
2017-03-03 17:37:25 +00:00
|
|
|
PackagesDirectory="$(PackagesDirectory)"
|
2017-08-14 19:18:39 +00:00
|
|
|
GitHubPassword="$(GITHUB_PASSWORD)"
|
|
|
|
Condition=" '$(GITHUB_PASSWORD)' != '' " />
|
2016-10-12 19:25:06 +00:00
|
|
|
</Target>
|
|
|
|
</Project>
|