Use more consistent manifest attributes (#7991)
Create manifest attributes that are consistent with arcade's usage. This also means they will be consistent between manifests, which is important.
This commit is contained in:
parent
48ed6f10db
commit
8f68acd8bb
1 changed files with 29 additions and 2 deletions
|
@ -14,6 +14,33 @@
|
|||
<PublishBinariesAndBadge Condition=" '$(PublishBinariesAndBadge)' == '' ">true</PublishBinariesAndBadge>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Pulled from arcade's publish.proj see https://github.com/dotnet/arcade/issues/5790 for
|
||||
issue on making this common in arcade so it doesn't have to be duplicated here -->
|
||||
<PropertyGroup>
|
||||
<CollectionUri>$(SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)</CollectionUri>
|
||||
|
||||
<!-- When we have dev.azure.com/<account>/ -->
|
||||
<AzureDevOpsAccount Condition="$(CollectionUri.IndexOf('dev.azure.com')) >= 0">$(CollectionUri.Split('/')[3])</AzureDevOpsAccount>
|
||||
|
||||
<!-- When we have <account>.visualstudio.com -->
|
||||
<AzureDevOpsAccount Condition="$(CollectionUri.IndexOf('visualstudio.com')) >= 0">$(CollectionUri.Split('.')[0].Split('/')[2])</AzureDevOpsAccount>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
The new Maestro/BAR build model keeps separate Azure DevOps and GitHub build information.
|
||||
The GitHub information will be extracted based on the Azure DevOps repository.
|
||||
-->
|
||||
<ItemGroup>
|
||||
<ManifestBuildData Include="InitialAssetsLocation=$(SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$(SYSTEM_TEAMPROJECT)/_apis/build/builds/$(BUILD_BUILDID)/artifacts" />
|
||||
<ManifestBuildData Include="AzureDevOpsBuildId=$(BUILD_BUILDID)" />
|
||||
<ManifestBuildData Include="AzureDevOpsBuildDefinitionId=$(SYSTEM_DEFINITIONID)" />
|
||||
<ManifestBuildData Include="AzureDevOpsAccount=$(AzureDevOpsAccount)" />
|
||||
<ManifestBuildData Include="AzureDevOpsProject=$(SYSTEM_TEAMPROJECT)" />
|
||||
<ManifestBuildData Include="AzureDevOpsBuildNumber=$(BUILD_BUILDNUMBER)" />
|
||||
<ManifestBuildData Include="AzureDevOpsRepository=$(BUILD_REPOSITORY_URI)" />
|
||||
<ManifestBuildData Include="AzureDevOpsBranch=$(BUILD_SOURCEBRANCH)" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Because we may be building in a container, we should use an asset manifest file path
|
||||
that exists in the container. Disambiguate the manifests via available properties.
|
||||
|
@ -121,7 +148,7 @@
|
|||
|
||||
<PushToAzureDevOpsArtifacts
|
||||
ItemsToPush="@(SdkAssetsToPushToBlobFeed);@(SdkAssetsWithSuffixToPushToBlobFeed)"
|
||||
ManifestBuildData="Location=$(SdkAssetsFeedUrl)"
|
||||
ManifestBuildData="@(ManifestBuildData)"
|
||||
ManifestRepoUri="$(BUILD_REPOSITORY_URI)"
|
||||
ManifestBranch="$(BUILD_SOURCEBRANCH)"
|
||||
ManifestBuildId="$(BUILD_BUILDNUMBER)"
|
||||
|
@ -131,7 +158,7 @@
|
|||
|
||||
<PushToAzureDevOpsArtifacts
|
||||
ItemsToPush="@(ChecksumsToPushToBlobFeed);@(ChecksumsWithSuffixToPushToBlobFeed)"
|
||||
ManifestBuildData="Location=$(ChecksumsFeedUrl)"
|
||||
ManifestBuildData="@(ManifestBuildData)"
|
||||
ManifestRepoUri="$(BUILD_REPOSITORY_URI)"
|
||||
ManifestBranch="$(BUILD_SOURCEBRANCH)"
|
||||
ManifestBuildId="$(BUILD_BUILDNUMBER)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue