2016-08-09 13:28:23 +00:00
|
|
|
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<OverwriteOnPublish Condition="'$(OverwriteOnPublish)' == ''">false</OverwriteOnPublish>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- gathers the items to be published -->
|
|
|
|
<Target Name="GatherItemsForPattern">
|
|
|
|
<Error Condition="'$(PublishPattern)' == ''" Text="Please specify a value for PublishPattern using standard msbuild 'include' syntax." />
|
|
|
|
<ItemGroup>
|
|
|
|
<ForPublishing Include="$(PublishPattern)" />
|
|
|
|
</ItemGroup>
|
|
|
|
<!-- add relative blob path metadata -->
|
|
|
|
<ItemGroup>
|
|
|
|
<ForPublishing>
|
2016-10-12 19:25:06 +00:00
|
|
|
<RelativeBlobPath>$([System.String]::Copy('%(RecursiveDir)%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
|
2018-01-17 16:37:33 +00:00
|
|
|
<ManifestArtifactData>ShipInstaller=dotnetcli</ManifestArtifactData>
|
2016-08-09 13:28:23 +00:00
|
|
|
</ForPublishing>
|
|
|
|
</ItemGroup>
|
|
|
|
<Error Condition="'@(ForPublishing)' == ''" Text="No items were found matching pattern '$(PublishPattern)'." />
|
|
|
|
</Target>
|
|
|
|
|
2016-10-12 19:25:06 +00:00
|
|
|
<!-- publishes artifacts to blob storage in Azure -->
|
|
|
|
<Target Name="UploadArtifactsToAzure" DependsOnTargets="GatherItemsForPattern">
|
|
|
|
<Error Condition="'$(ArtifactCloudDropAccessToken)' == ''" Text="Missing property ArtifactCloudDropAccessToken." />
|
2018-01-16 22:16:56 +00:00
|
|
|
<Error Condition="'$(ArtifactCloudDropURL)' == ''" Text="Missing property ArtifactCloudDropURL." />
|
2018-01-17 02:36:50 +00:00
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
<Message Text="Publish assets to blob storage started: $(ArtifactCloudDropURL)" />
|
2018-01-17 02:36:50 +00:00
|
|
|
<PushToBlobFeed ExpectedFeedUrl="$(ArtifactCloudDropURL)"
|
|
|
|
AccountKey="$(ArtifactCloudDropAccessToken)"
|
2018-01-16 22:16:56 +00:00
|
|
|
ItemsToPush="@(ForPublishing)"
|
2018-01-17 02:36:50 +00:00
|
|
|
ManifestBranch="$(BranchName)"
|
|
|
|
ManifestBuildId="$(FullNugetVersion)"
|
|
|
|
ManifestCommit="$(CommitHash)"
|
|
|
|
ManifestName="$(BuildName)"
|
2018-01-30 23:22:32 +00:00
|
|
|
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
|
2018-01-17 02:36:50 +00:00
|
|
|
Overwrite="$(OverwriteOnPublish)"
|
|
|
|
PublishFlatContainer="true"
|
|
|
|
SkipCreateManifest="$(IsNotOrchestratedPublish)" />
|
2016-08-09 13:28:23 +00:00
|
|
|
</Target>
|
|
|
|
|
2016-10-12 19:25:06 +00:00
|
|
|
<!-- publishes checksums for the artifacts to blob storage in Azure -->
|
|
|
|
<Target Name="UploadChecksumsToAzure" DependsOnTargets="GenerateChecksums">
|
|
|
|
<Error Condition="'$(ChecksumCloudDropAccessToken)' == ''" Text="Missing property ChecksumCloudDropAccessToken." />
|
2018-01-16 22:16:56 +00:00
|
|
|
<Error Condition="'$(ChecksumCloudDropURL)' == ''" Text="Missing property ChecksumCloudDropURL." />
|
2018-01-17 02:36:50 +00:00
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
<Message Text="Publish checksums to blob storage started: $(ChecksumCloudDropURL)" />
|
2018-01-17 02:36:50 +00:00
|
|
|
<PushToBlobFeed ExpectedFeedUrl="$(ChecksumCloudDropURL)"
|
|
|
|
AccountKey="$(ChecksumCloudDropAccessToken)"
|
2018-01-16 22:16:56 +00:00
|
|
|
ItemsToPush="@(ArtifactsForGeneratingChecksums->'%(DestinationPath)')"
|
2018-01-17 02:36:50 +00:00
|
|
|
ManifestBranch="$(BranchName)"
|
|
|
|
ManifestBuildId="$(FullNugetVersion)"
|
|
|
|
ManifestCommit="$(CommitHash)"
|
|
|
|
ManifestName="$(BuildName)"
|
2018-01-30 23:22:32 +00:00
|
|
|
ManifestBuildData="ProductVersion=$(FullNugetVersion)"
|
2018-01-17 02:36:50 +00:00
|
|
|
Overwrite="$(OverwriteOnPublish)"
|
|
|
|
PublishFlatContainer="true"
|
|
|
|
SkipCreateManifest="$(IsNotOrchestratedPublish)" />
|
2016-10-12 19:25:06 +00:00
|
|
|
</Target>
|
|
|
|
|
2018-01-16 22:16:56 +00:00
|
|
|
</Project>
|