Add build metadata to Helix Job (#18703)
This commit is contained in:
parent
358c84c4d2
commit
26b9e60dc6
|
|
@ -39,6 +39,17 @@
|
|||
<HelixBuild>$([System.DateTime]::Now.ToString('yyyyMMddHHmm'))</HelixBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Items with the type "HelixProperties" will become arbitrary JSON associated with the job -->
|
||||
<!-- NOTE: These are global to the whole Job, so don't include project-specific content here. -->
|
||||
<ItemGroup>
|
||||
<HelixProperties Include="buildNumber" Value="$(BUILD_BUILDNUMBER)" />
|
||||
<HelixProperties Include="buildDefinition" Value="$(BUILD_DEFINITIONNAME)" />
|
||||
<HelixProperties Include="commitSha" Value="$(BUILD_SOURCEVERSION)" />
|
||||
<HelixProperties Include="branch" Value="$(BUILD_SOURCEBRANCH)" />
|
||||
<HelixProperties Condition="'$(RunQuarantinedTests)' == 'true'" Include="runType" Value="quarantined" />
|
||||
<HelixProperties Condition="'$(RunQuarantinedTests)' != 'true'" Include="runType" Value="unquarantined" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="Gather" BeforeTargets="Build">
|
||||
<MSBuild Projects="@(ProjectToBuild)"
|
||||
Targets="CreateHelixPayload"
|
||||
|
|
|
|||
|
|
@ -15,9 +15,7 @@
|
|||
<RunQuarantinedTests>false</RunQuarantinedTests>
|
||||
<IsWindowsHelixQueue>false</IsWindowsHelixQueue>
|
||||
<IsWindowsHelixQueue Condition="$(HelixTargetQueue.Contains('Windows')) or $(HelixTargetQueue.Contains('windows'))">true</IsWindowsHelixQueue>
|
||||
<_HelixRunType Condition="'$(RunQuarantinedTests)' == 'true'">quarantined</_HelixRunType>
|
||||
<_HelixRunType Condition="'$(RunQuarantinedTests)' != 'true'">unquarantined</_HelixRunType>
|
||||
<HelixTestName>$(MSBuildProjectName)--$(TargetFramework)--$(_HelixRunType)</HelixTestName>
|
||||
<HelixTestName>$(MSBuildProjectName)--$(TargetFramework)</HelixTestName>
|
||||
<HelixUseArchive>false</HelixUseArchive>
|
||||
<LoggingTestingDisableFileLogging Condition="'$(IsHelixJob)' == 'true'">false</LoggingTestingDisableFileLogging>
|
||||
<NodeVersion>10.15.3</NodeVersion>
|
||||
|
|
|
|||
Loading…
Reference in New Issue