Skip to content

Commit 036dc2b

Browse files
authored
Fixup the AzureDevOpsAccount (#1072)
1 parent d3f0144 commit 036dc2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

publish/prepare-artifacts.proj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@
9191
The new Maestro/BAR build model keeps separate Azure DevOps and GitHub build information.
9292
The GitHub information will be extracted based on the Azure DevOps repository.
9393
-->
94+
95+
<PropertyGroup>
96+
<CollectionUri>$(SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)</CollectionUri>
97+
<!-- When we have dev.azure.com/<account>/ -->
98+
<AzureDevOpsAccount Condition="$(CollectionUri.IndexOf('dev.azure.com')) >= 0">$(CollectionUri.Split('/')[3])</AzureDevOpsAccount>
99+
<!-- When we have <account>.visualstudio.com -->
100+
<AzureDevOpsAccount Condition="$(CollectionUri.IndexOf('visualstudio.com')) >= 0">$(CollectionUri.Split('.')[0].Split('/')[2])</AzureDevOpsAccount>
101+
</PropertyGroup>
94102
<ItemGroup>
95103
<ManifestBuildData Include="InitialAssetsLocation=$(SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$(SYSTEM_TEAMPROJECT)/_apis/build/builds/$(BUILD_BUILDID)/artifacts" />
96104
<ManifestBuildData Include="AzureDevOpsBuildId=$(BUILD_BUILDID)" />

0 commit comments

Comments
 (0)