-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
Copy pathhelix.yml
50 lines (48 loc) · 2.23 KB
/
helix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
parameters:
runtimeFlavor: ''
archType: ''
buildConfig: ''
creator: ''
helixQueues: ''
osGroup: ''
targetRid: ''
testRunNamePrefixSuffix: ''
testScope: 'innerloop' # innerloop | outerloop | all
interpreter: ''
condition: always()
extraHelixArguments: ''
shouldContinueOnError: false
scenarios: ''
SuperPmiCollect: ''
SuperPmiCollectionType: ''
SuperPmiCollectionName: ''
steps:
- script: $(_msbuildCommand) $(_warnAsErrorParamHelixOverride) -restore
$(Build.SourcesDirectory)/src/libraries/sendtohelix.proj
/p:RuntimeFlavor=${{ parameters.runtimeFlavor }}
/p:TargetArchitecture=${{ parameters.archType }}
/p:TargetRuntimeIdentifier=${{ parameters.targetRid }}
/p:Configuration=${{ parameters.buildConfig }}
/p:TargetOS=${{ parameters.osGroup }}
/p:MonoForceInterpreter=${{ parameters.interpreter }}
/p:TestScope=${{ parameters.testScope }}
/p:TestRunNamePrefixSuffix=${{ parameters.testRunNamePrefixSuffix }}
/p:HelixBuild=$(Build.BuildNumber)
${{ parameters.extraHelixArguments }}
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog
displayName: Send to Helix
condition: and(succeeded(), ${{ parameters.condition }})
continueOnError: ${{ eq(parameters.shouldContinueOnError, true) }}
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
_Scenarios: ${{ join(',', parameters.scenarios) }} # Pass scenarios to MSBuild as env var to avoid need of escaping comma separated list
_SuperPmiCollect: ${{ parameters.SuperPmiCollect }}
_SuperPmiCollectionType: ${{ parameters.SuperPmiCollectionType }}
_SuperPmiCollectionName: ${{ parameters.SuperPmiCollectionName }}
${{ if eq(variables['System.TeamProject'], 'internal') }}:
HelixAccessToken: $(HelixApiAccessToken)
HelixTargetQueues: ${{ replace(lower(join('+', parameters.helixQueues)), '.open', '') }}
Creator: ''
${{ if eq(variables['System.TeamProject'], 'public') }}:
HelixTargetQueues: ${{ join('+', parameters.helixQueues) }}
Creator: ${{ parameters.creator }}