Skip to content

Commit def26f9

Browse files
premunCopilot
andauthored
Add UseHelixMonitor to send-to-helix.yml (#17033)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 69f2416 commit def26f9

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

eng/common/core-templates/steps/send-to-helix.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ parameters:
1010
HelixConfiguration: '' # optional -- additional property attached to a job
1111
HelixPreCommands: '' # optional -- commands to run before Helix work item execution
1212
HelixPostCommands: '' # optional -- commands to run after Helix work item execution
13+
UseHelixMonitor: false # optional -- true will submit Helix jobs configured for the standalone Helix Job Monitor (results are reported/waited on out-of-band; this step will not wait, and WaitForWorkItemCompletion will be overridden)
1314
WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects
1415
WorkItemCommand: '' # optional -- a command to execute on the payload; requires WorkItemDirectory; incompatible with XUnitProjects
1516
WorkItemTimeout: '' # optional -- a timeout in TimeSpan.Parse-ready value (e.g. 00:02:00) for the work item command; requires WorkItemDirectory; incompatible with XUnitProjects
@@ -31,7 +32,15 @@ parameters:
3132
continueOnError: false # optional -- determines whether to continue the build if the step errors; defaults to false
3233

3334
steps:
34-
- powershell: 'powershell "$env:BUILD_SOURCESDIRECTORY\eng\common\msbuild.ps1 $env:BUILD_SOURCESDIRECTORY/${{ parameters.HelixProjectPath }} /restore /p:TreatWarningsAsErrors=false ${{ parameters.HelixProjectArguments }} /t:Test /bl:$env:BUILD_SOURCESDIRECTORY\artifacts\log\$env:BuildConfig\SendToHelix.binlog"'
35+
- powershell: >
36+
$env:BUILD_SOURCESDIRECTORY\eng\common\msbuild.ps1
37+
$env:BUILD_SOURCESDIRECTORY/${{ parameters.HelixProjectPath }}
38+
/restore
39+
/p:TreatWarningsAsErrors=false
40+
/p:EnableHelixJobMonitor=${{ parameters.UseHelixMonitor }}
41+
${{ parameters.HelixProjectArguments }}
42+
/t:Test
43+
/bl:$env:BUILD_SOURCESDIRECTORY\artifacts\log\$env:BuildConfig\SendToHelix.binlog
3544
displayName: ${{ parameters.DisplayNamePrefix }} (Windows)
3645
env:
3746
BuildConfig: $(_BuildConfig)
@@ -61,7 +70,15 @@ steps:
6170
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
6271
condition: and(${{ parameters.condition }}, eq(variables['Agent.Os'], 'Windows_NT'))
6372
continueOnError: ${{ parameters.continueOnError }}
64-
- script: $BUILD_SOURCESDIRECTORY/eng/common/msbuild.sh $BUILD_SOURCESDIRECTORY/${{ parameters.HelixProjectPath }} /restore /p:TreatWarningsAsErrors=false ${{ parameters.HelixProjectArguments }} /t:Test /bl:$BUILD_SOURCESDIRECTORY/artifacts/log/$BuildConfig/SendToHelix.binlog
73+
- script: >
74+
$BUILD_SOURCESDIRECTORY/eng/common/msbuild.sh
75+
$BUILD_SOURCESDIRECTORY/${{ parameters.HelixProjectPath }}
76+
/restore
77+
/p:TreatWarningsAsErrors=false
78+
/p:EnableHelixJobMonitor=${{ parameters.UseHelixMonitor }}
79+
${{ parameters.HelixProjectArguments }}
80+
/t:Test
81+
/bl:$BUILD_SOURCESDIRECTORY/artifacts/log/$BuildConfig/SendToHelix.binlog
6582
displayName: ${{ parameters.DisplayNamePrefix }} (Unix)
6683
env:
6784
BuildConfig: $(_BuildConfig)

0 commit comments

Comments
 (0)