Conserving code-lines.

This commit is contained in:
John Beisner 2017-07-03 14:34:04 -07:00
parent 502c082846
commit af660e5a76

View file

@ -23,8 +23,7 @@
UploadArtifactsToAzure;
UploadChecksumsToAzure;
PublishDebFilesToDebianRepo;
PublishCliVersionBadge;
PublishCliCoherentBadge" />
PublishCliVersionBadge" />
<Target Name="GatherItemsForPattern">
<ItemGroup>
@ -46,6 +45,8 @@
<Target Name="PublishCliVersionBadge">
<ItemGroup>
<CliVersionBadgeToUpload Include="$(VersionBadge)" />
<CliVersionBadgeToUpload Include="$(CoherentBadge)"
Condition=" '$(Coherent)' == 'true' " />
</ItemGroup>
<ItemGroup>
@ -67,30 +68,4 @@
ContainerName="$(ArtifactContainerName)"
Items="@(CliVersionBadgeToUpload)" />
</Target>
<Target Name="PublishCliCoherentBadge"
Condition=" '$(Coherent)' == 'true' ">
<ItemGroup>
<CliCoherentBadgeToUpload Include="$(CoherentBadge)" />
</ItemGroup>
<ItemGroup>
<CliCoherentBadgeToUpload>
<RelativeBlobPath>$(Product)/$(FullNugetVersion)/$([System.String]::Copy('%(Filename)%(Extension)').Replace('\' ,'/'))</RelativeBlobPath>
</CliCoherentBadgeToUpload>
</ItemGroup>
<UploadToAzure
AccountKey="$(ArtifactCloudDropAccessToken)"
AccountName="$(ArtifactCloudDropAccountName)"
ContainerName="$(ArtifactContainerName)"
Items="@(CliCoherentBadgeToUpload)"
Overwrite="$(OverwriteOnPublish)" />
<SetBlobPropertiesBasedOnFileType
AccountKey="$(ArtifactCloudDropAccessToken)"
AccountName="$(ArtifactCloudDropAccountName)"
ContainerName="$(ArtifactContainerName)"
Items="@(CliCoherentBadgeToUpload)" />
</Target>
</Project>