Skip to content

Commit 756b1c7

Browse files
committed
add more yml templates
1 parent ac680db commit 756b1c7

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Please remember to update the documentation if you make changes to these parameters!
2+
parameters:
3+
HelixSource: 'pr/default' # required -- sources must start with pr/, official/, prodcon/, or agent/
4+
HelixType: 'tests/default/' # required -- Helix telemetry which identifies what type of data this is; should include "test" for clarity and must end in '/'
5+
HelixBuild: $(Build.BuildNumber) # required -- the build number Helix will use to identify this -- automatically set to the AzDO build number
6+
HelixTargetQueues: '' # required -- semicolon delimited list of Helix queues to test on; see https://helix.dot.net/ for a list of queues
7+
HelixAccessToken: '' # required -- access token to make Helix API requests; should be provided by the appropriate variable group
8+
HelixPreCommands: '' # optional -- commands to run before Helix work item execution
9+
HelixPostCommands: '' # optional -- commands to run after Helix work item execution
10+
WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects
11+
CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload
12+
IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
13+
DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json
14+
DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json
15+
EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control
16+
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."
17+
Creator: '' # optional -- if the build is external, use this to specify who is sending the job
18+
DisplayNamePrefix: 'Send job to Helix' # optional -- rename the beginning of the displayName of the steps in AzDO
19+
condition: succeeded() # optional -- condition for step to execute; defaults to succeeded()
20+
continueOnError: false # optional -- determines whether to continue the build if the step errors; defaults to false
21+
22+
steps:
23+
- powershell: $(Build.SourcesDirectory)\eng\common\msbuild.ps1 $(Build.SourcesDirectory)\eng\common\performance\perfhelixpublish.proj /restore /t:Test /bl:$(Build.SourcesDirectory)\artifacts\log\$env:BuildConfig\SendToHelix.binlog
24+
displayName: ${{ parameters.DisplayNamePrefix }} (Windows)
25+
env:
26+
BuildConfig: $(_BuildConfig)
27+
HelixSource: ${{ parameters.HelixSource }}
28+
HelixType: ${{ parameters.HelixType }}
29+
HelixBuild: ${{ parameters.HelixBuild }}
30+
HelixTargetQueues: ${{ parameters.HelixTargetQueues }}
31+
HelixAccessToken: ${{ parameters.HelixAccessToken }}
32+
HelixPreCommands: ${{ parameters.HelixPreCommands }}
33+
HelixPostCommands: ${{ parameters.HelixPostCommands }}
34+
WorkItemDirectory: ${{ parameters.WorkItemDirectory }}
35+
CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}
36+
IncludeDotNetCli: ${{ parameters.IncludeDotNetCli }}
37+
DotNetCliPackageType: ${{ parameters.DotNetCliPackageType }}
38+
DotNetCliVersion: ${{ parameters.DotNetCliVersion }}
39+
EnableXUnitReporter: ${{ parameters.EnableXUnitReporter }}
40+
WaitForWorkItemCompletion: ${{ parameters.WaitForWorkItemCompletion }}
41+
Creator: ${{ parameters.Creator }}
42+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
43+
condition: and(${{ parameters.condition }}, eq(variables['Agent.Os'], 'Windows_NT'))
44+
continueOnError: ${{ parameters.continueOnError }}
45+
- script: $BUILD_SOURCESDIRECTORY/eng/common/msbuild.sh $BUILD_SOURCESDIRECTORY/eng/common/performance/perfhelixpublish.proj /restore /t:Test /bl:$BUILD_SOURCESDIRECTORY/artifacts/log/$BuildConfig/SendToHelix.binlog
46+
displayName: ${{ parameters.DisplayNamePrefix }} (Unix)
47+
env:
48+
BuildConfig: $(_BuildConfig)
49+
HelixSource: ${{ parameters.HelixSource }}
50+
HelixType: ${{ parameters.HelixType }}
51+
HelixBuild: ${{ parameters.HelixBuild }}
52+
HelixTargetQueues: ${{ parameters.HelixTargetQueues }}
53+
HelixAccessToken: ${{ parameters.HelixAccessToken }}
54+
HelixPreCommands: ${{ parameters.HelixPreCommands }}
55+
HelixPostCommands: ${{ parameters.HelixPostCommands }}
56+
WorkItemDirectory: ${{ parameters.WorkItemDirectory }}
57+
CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}
58+
IncludeDotNetCli: ${{ parameters.IncludeDotNetCli }}
59+
DotNetCliPackageType: ${{ parameters.DotNetCliPackageType }}
60+
DotNetCliVersion: ${{ parameters.DotNetCliVersion }}
61+
EnableXUnitReporter: ${{ parameters.EnableXUnitReporter }}
62+
WaitForWorkItemCompletion: ${{ parameters.WaitForWorkItemCompletion }}
63+
Creator: ${{ parameters.Creator }}
64+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
65+
condition: and(${{ parameters.condition }}, ne(variables['Agent.Os'], 'Windows_NT'))
66+
continueOnError: ${{ parameters.continueOnError }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parameters:
2+
ChannelId: 0
3+
4+
steps:
5+
- task: PowerShell@2
6+
displayName: Add Build to Channel
7+
inputs:
8+
filePath: $(Build.SourcesDirectory)/eng/common/post-build/promote-build.ps1
9+
arguments: -BuildId $(BARBuildId)
10+
-ChannelId ${{ parameters.ChannelId }}
11+
-MaestroApiAccessToken $(MaestroApiAccessToken)
12+
-MaestroApiEndPoint $(MaestroApiEndPoint)
13+
-MaestroApiVersion $(MaestroApiVersion)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
parameters:
2+
StageLabel: ''
3+
JobLabel: ''
4+
5+
steps:
6+
- task: Powershell@2
7+
displayName: Prepare Binlogs to Upload
8+
inputs:
9+
targetType: inline
10+
script: |
11+
New-Item -ItemType Directory $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/
12+
Move-Item -Path $(Build.SourcesDirectory)/artifacts/log/Debug/* $(Build.SourcesDirectory)/PostBuildLogs/${{parameters.StageLabel}}/${{parameters.JobLabel}}/
13+
continueOnError: true
14+
condition: always()
15+
16+
- task: PublishBuildArtifacts@1
17+
displayName: Publish Logs
18+
inputs:
19+
PathtoPublish: '$(Build.SourcesDirectory)/PostBuildLogs'
20+
PublishLocation: Container
21+
ArtifactName: PostBuildLogs
22+
continueOnError: true
23+
condition: always()

0 commit comments

Comments
 (0)