-
Notifications
You must be signed in to change notification settings - Fork 27
/
AgentInterfaces.yml
84 lines (75 loc) · 2.09 KB
/
AgentInterfaces.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 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:
branches:
include:
- main
paths:
include:
- /AgentInterfaces/
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
projectName: 'AgentInterfaces'
steps:
- task: DotNetCoreCLI@2
name: 'test'
inputs:
command: 'test'
projects: '$(projectName).Tests/$(projectName).Tests.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: DotNetCoreCLI@2
displayName: dotnet pack
inputs:
command: pack
projects: '$(projectName)/$(projectName).csproj'
arguments: --configuration $(BuildConfiguration)
searchPatternPack: '$(projectName)/$(projectName).csproj'
nobuild: true
versioningScheme: byBuildNumber
buildProperties: platform=anycpu
- task: EsrpCodeSigning@2
inputs:
FolderPath: '/home/vsts/work/1/a/'
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/a/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'ab71e721-8bf3-4593-ad79-ef477a915924'