forked from PlayFab/MpsAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVmAgent.Core.yml
More file actions
65 lines (59 loc) · 1.69 KB
/
VmAgent.Core.yml
File metadata and controls
65 lines (59 loc) · 1.69 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- manual
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
projectName: 'VmAgent.Core'
steps:
- task: DotNetCoreCLI@2
name: 'test'
inputs:
command: 'test'
projects: '$(projectName)/$(projectName).csproj'
arguments: '--configuration $(buildConfiguration)'
displayName: 'dotnet test $(buildConfiguration)'
- task: DotNetCoreCLI@2
name: 'build'
inputs:
command: 'build'
arguments: '--configuration $(buildConfiguration)'
projects: '$(projectName)/$(projectName).csproj'
displayName: 'dotnet build $(buildConfiguration)'
- task: EsrpCodeSigning@1
inputs:
FolderPath: '/home/vsts/work/1/s/$(projectName)/bin/$(buildConfiguration)/'
ConnectedServiceName: 'Thunderhead Code-Sign service'
Pattern: '*.nupkg'
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetSign",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetVerify",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
- task: NuGetCommand@2
displayName: 'nuget push'
inputs:
command: 'push'
packagesToPush: '/home/vsts/work/1/s/$(projectName)/bin/$(buildConfiguration)/**/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'ab71e721-8bf3-4593-ad79-ef477a915924'