2019-03-22 16:53:39 +00:00
# Please remember to update the documentation if you make changes to these parameters!
2018-12-19 20:55:42 +00:00
parameters :
2019-03-08 13:36:42 +00:00
HelixSource : 'pr/default' # required -- sources must start with pr/, official/, prodcon/, or agent/
HelixType : 'tests/default/' # required -- Helix telemetry which identifies what type of data this is; should include "test" for clarity and must end in '/'
HelixBuild : $(Build.BuildNumber) # required -- the build number Helix will use to identify this -- automatically set to the AzDO build number
2019-03-20 21:42:05 +00:00
HelixTargetQueues : '' # required -- semicolon delimited list of Helix queues to test on; see https://helix.dot.net/ for a list of queues
2019-03-08 13:36:42 +00:00
HelixAccessToken : '' # required -- access token to make Helix API requests; should be provided by the appropriate variable group
2019-05-23 12:12:19 +00:00
HelixConfiguration : '' # optional -- additional property attached to a job
2019-03-08 13:36:42 +00:00
HelixPreCommands : '' # optional -- commands to run before Helix work item execution
HelixPostCommands : '' # optional -- commands to run after Helix work item execution
WorkItemDirectory : '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects
WorkItemCommand : '' # optional -- a command to execute on the payload; requires WorkItemDirectory; incompatible with XUnitProjects
2020-04-28 13:18:29 +00:00
WorkItemTimeout : '' # optional -- a timeout in TimeSpan.Parse-ready value (e.g. 00:02:00) for the work item command; requires WorkItemDirectory; incompatible with XUnitProjects
2019-03-08 13:36:42 +00:00
CorrelationPayloadDirectory : '' # optional -- a directory to zip up and send to Helix as a correlation payload
XUnitProjects : '' # optional -- semicolon delimited list of XUnitProjects to parse and send to Helix; requires XUnitRuntimeTargetFramework, XUnitPublishTargetFramework, XUnitRunnerVersion, and IncludeDotNetCli=true
2019-03-21 12:33:28 +00:00
XUnitWorkItemTimeout : '' # optional -- the workitem timeout in seconds for all workitems created from the xUnit projects specified by XUnitProjects
2019-03-08 13:36:42 +00:00
XUnitPublishTargetFramework : '' # optional -- framework to use to publish your xUnit projects
XUnitRuntimeTargetFramework : '' # optional -- framework to use for the xUnit console runner
XUnitRunnerVersion : '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects
IncludeDotNetCli : false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
2021-03-03 14:01:31 +00:00
DotNetCliPackageType : '' # optional -- either 'sdk', 'runtime' or 'aspnetcore-runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases-index.json
DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this : https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases-index.json
2019-03-08 13:36:42 +00:00
WaitForWorkItemCompletion : true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget."
IsExternal : false # [DEPRECATED] -- doesn't do anything, jobs are external if HelixAccessToken is empty and Creator is set
2019-10-25 12:42:18 +00:00
HelixBaseUri : 'https://helix.dot.net/' # optional -- sets the Helix API base URI (allows targeting int)
2019-03-08 13:36:42 +00:00
Creator : '' # optional -- if the build is external, use this to specify who is sending the job
2019-04-23 12:35:26 +00:00
DisplayNamePrefix : 'Run Tests' # optional -- rename the beginning of the displayName of the steps in AzDO
2019-03-08 13:36:42 +00:00
condition : succeeded() # optional -- condition for step to execute; defaults to succeeded()
continueOnError : false # optional -- determines whether to continue the build if the step errors; defaults to false
2018-12-19 20:55:42 +00:00
steps :
2019-01-31 13:43:14 +00:00
- powershell : 'powershell "$env:BUILD_SOURCESDIRECTORY\eng\common\msbuild.ps1 $env:BUILD_SOURCESDIRECTORY\eng\common\helixpublish.proj /restore /t:Test /bl:$env:BUILD_SOURCESDIRECTORY\artifacts\log\$env:BuildConfig\SendToHelix.binlog"'
2019-03-08 13:36:42 +00:00
displayName : ${{ parameters.DisplayNamePrefix }} (Windows)
2018-12-19 20:55:42 +00:00
env :
BuildConfig : $(_BuildConfig)
HelixSource : ${{ parameters.HelixSource }}
HelixType : ${{ parameters.HelixType }}
HelixBuild : ${{ parameters.HelixBuild }}
2019-05-23 12:12:19 +00:00
HelixConfiguration : ${{ parameters.HelixConfiguration }}
2018-12-19 20:55:42 +00:00
HelixTargetQueues : ${{ parameters.HelixTargetQueues }}
HelixAccessToken : ${{ parameters.HelixAccessToken }}
HelixPreCommands : ${{ parameters.HelixPreCommands }}
HelixPostCommands : ${{ parameters.HelixPostCommands }}
WorkItemDirectory : ${{ parameters.WorkItemDirectory }}
WorkItemCommand : ${{ parameters.WorkItemCommand }}
2019-01-11 13:12:40 +00:00
WorkItemTimeout : ${{ parameters.WorkItemTimeout }}
2018-12-19 20:55:42 +00:00
CorrelationPayloadDirectory : ${{ parameters.CorrelationPayloadDirectory }}
XUnitProjects : ${{ parameters.XUnitProjects }}
2019-03-21 12:33:28 +00:00
XUnitWorkItemTimeout : ${{ parameters.XUnitWorkItemTimeout }}
2018-12-19 20:55:42 +00:00
XUnitPublishTargetFramework : ${{ parameters.XUnitPublishTargetFramework }}
XUnitRuntimeTargetFramework : ${{ parameters.XUnitRuntimeTargetFramework }}
XUnitRunnerVersion : ${{ parameters.XUnitRunnerVersion }}
IncludeDotNetCli : ${{ parameters.IncludeDotNetCli }}
DotNetCliPackageType : ${{ parameters.DotNetCliPackageType }}
DotNetCliVersion : ${{ parameters.DotNetCliVersion }}
WaitForWorkItemCompletion : ${{ parameters.WaitForWorkItemCompletion }}
2019-10-25 12:42:18 +00:00
HelixBaseUri : ${{ parameters.HelixBaseUri }}
2018-12-19 20:55:42 +00:00
Creator : ${{ parameters.Creator }}
2019-03-06 13:37:00 +00:00
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
2018-12-19 20:55:42 +00:00
condition : and(${{ parameters.condition }}, eq(variables['Agent.Os'], 'Windows_NT'))
continueOnError : ${{ parameters.continueOnError }}
2019-01-31 13:43:14 +00:00
- script : $BUILD_SOURCESDIRECTORY/eng/common/msbuild.sh $BUILD_SOURCESDIRECTORY/eng/common/helixpublish.proj /restore /t:Test /bl:$BUILD_SOURCESDIRECTORY/artifacts/log/$BuildConfig/SendToHelix.binlog
2019-03-08 13:36:42 +00:00
displayName : ${{ parameters.DisplayNamePrefix }} (Unix)
2018-12-19 20:55:42 +00:00
env :
BuildConfig : $(_BuildConfig)
HelixSource : ${{ parameters.HelixSource }}
HelixType : ${{ parameters.HelixType }}
HelixBuild : ${{ parameters.HelixBuild }}
2019-05-23 12:12:19 +00:00
HelixConfiguration : ${{ parameters.HelixConfiguration }}
2018-12-19 20:55:42 +00:00
HelixTargetQueues : ${{ parameters.HelixTargetQueues }}
HelixAccessToken : ${{ parameters.HelixAccessToken }}
HelixPreCommands : ${{ parameters.HelixPreCommands }}
HelixPostCommands : ${{ parameters.HelixPostCommands }}
WorkItemDirectory : ${{ parameters.WorkItemDirectory }}
WorkItemCommand : ${{ parameters.WorkItemCommand }}
2019-01-11 13:12:40 +00:00
WorkItemTimeout : ${{ parameters.WorkItemTimeout }}
2018-12-19 20:55:42 +00:00
CorrelationPayloadDirectory : ${{ parameters.CorrelationPayloadDirectory }}
XUnitProjects : ${{ parameters.XUnitProjects }}
2019-03-21 12:33:28 +00:00
XUnitWorkItemTimeout : ${{ parameters.XUnitWorkItemTimeout }}
2018-12-19 20:55:42 +00:00
XUnitPublishTargetFramework : ${{ parameters.XUnitPublishTargetFramework }}
XUnitRuntimeTargetFramework : ${{ parameters.XUnitRuntimeTargetFramework }}
XUnitRunnerVersion : ${{ parameters.XUnitRunnerVersion }}
IncludeDotNetCli : ${{ parameters.IncludeDotNetCli }}
DotNetCliPackageType : ${{ parameters.DotNetCliPackageType }}
DotNetCliVersion : ${{ parameters.DotNetCliVersion }}
WaitForWorkItemCompletion : ${{ parameters.WaitForWorkItemCompletion }}
2019-10-25 12:42:18 +00:00
HelixBaseUri : ${{ parameters.HelixBaseUri }}
2018-12-19 20:55:42 +00:00
Creator : ${{ parameters.Creator }}
2019-03-06 13:37:00 +00:00
SYSTEM_ACCESSTOKEN : $(System.AccessToken)
2018-12-19 20:55:42 +00:00
condition : and(${{ parameters.condition }}, ne(variables['Agent.Os'], 'Windows_NT'))
2019-03-22 16:53:39 +00:00
continueOnError : ${{ parameters.continueOnError }}