Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6ae4a45

Browse files
authored
Set helix source correctly for prodcon build (#16412)
* Set helix source correctly for prodcon build
1 parent 5482dfc commit 6ae4a45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/helixpublish.proj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232

3333
<HelixJobType Condition="'$(HelixJobType)'==''">test/functional/cli/</HelixJobType>
3434

35+
<!-- Detect whether we are on a product construction build via ProductBuildId. If so, set source appropriately -->
36+
<HelixSource Condition="'$(HelixSource)'=='' And '$(IsOfficial)'!='' And '$(TestProduct)'!='' And '$(Branch)'!='' And '$(ProductBuildId)'!=''">prodcon/$(TestProduct)/$(Branch)/</HelixSource>
3537
<HelixSource Condition="'$(HelixSource)'=='' And '$(IsOfficial)'!='' And '$(TestProduct)'!='' And '$(Branch)'!=''">official/$(TestProduct)/$(Branch)/</HelixSource>
3638
<HelixSource Condition="'$(HelixSource)'=='' And '$(IsOfficial)'=='' And '$(TestProduct)'!='' And '$(Branch)'!=''">pr/$(TestProduct)/$(Branch)/</HelixSource>
3739
<HelixSource Condition="'$(HelixSource)'==''">pr/unknown/</HelixSource>
@@ -41,7 +43,8 @@
4143

4244
<!-- Properties used for submission by CloudTest.Helix.Targets-->
4345
<BuildMoniker>$(CurrentDate)</BuildMoniker>
44-
<BuildMoniker Condition="'$(IsOfficial)'=='true'">$(OfficialBuildId)</BuildMoniker>
46+
<BuildMoniker Condition="'$(IsOfficial)'=='true' And '$(ProductBuildId)'==''">$(OfficialBuildId)</BuildMoniker>
47+
<BuildMoniker Condition="'$(IsOfficial)'=='true' And '$(ProductBuildId)'!=''">$(ProductBuildId)</BuildMoniker>
4548
<HelixArchLabel>$(Platform)</HelixArchLabel>
4649
<HelixConfigLabel>$(BuildType)</HelixConfigLabel>
4750
</PropertyGroup>

0 commit comments

Comments
 (0)