forked from microsoft/PowerApps-Tooling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
137 lines (124 loc) · 3.87 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
137 lines (124 loc) · 3.87 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Build Pipeline for signing PowerPlatform.Formulas.Tools
trigger:
- master
pr: none
pool:
vmImage: 'windows-latest'
variables:
- group: 'Nuget And PSGallery Publishing Data'
steps:
- task: UseDotNet@2
displayName: 'Use dotnet sdk 3.1'
inputs:
version: 3.1.x
installationPath: '$(Agent.ToolsDirectory)/dotnet'
# Dotnet 2.1 appears to be required for ESRP signing? seems weird, testing
- task: UseDotNet@2
displayName: 'Use dotnet sdk 2.1'
inputs:
version: 2.1.x
installationPath: '$(Agent.ToolsDirectory)/dotnet'
- task: DotNetCoreCLI@2
displayName: 'Build and test '
inputs:
command: 'run'
projects: '$(Build.SourcesDirectory)/targets/targets.csproj'
arguments: '-- ci -c $(BuildConfiguration)'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '**/*-*.trx'
searchFolder: '$(Build.SourcesDirectory)/obj/'
mergeTestResults: true
failTaskOnFailedTests: true
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP sign Microsoft.PowerPlatform.Formulas.Tools.dll'
inputs:
ConnectedServiceName: 'ESRPCodeSigningConnection'
FolderPath: '$(Build.SourcesDirectory)/bin/$(BuildConfiguration)/PAModel/'
Pattern: '*.dll'
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keyCode": "CP-233863-SN",
"operationSetCode": "StrongNameSign",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "Append",
"parameterValue": "/as"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd \"SHA256\""
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "sign",
"toolVersion": "1.0"
}
]
ServiceEndpointUrl: 'https://api.esrp.microsoft.com/api/v1'
- task: DotNetCoreCLI@2
displayName: 'Pack'
inputs:
command: 'run'
projects: '$(Build.SourcesDirectory)/targets/targets.csproj'
arguments: '-- pack -c $(BuildConfiguration)'
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP sign nuget packages'
inputs:
ConnectedServiceName: ESRPCodeSigningConnection
FolderPath: '$(Build.SourcesDirectory)/pkg/PackResult'
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"
}
]
ServiceEndpointUrl: 'https://api.esrp.microsoft.com/api/v1'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/pkg/PackResult'
ArtifactName: 'PowerPlatform.Formulas.Tools ($(BuildConfiguration))'
publishLocation: 'Container'
- task: tagBuildOrRelease@0
inputs:
type: 'Build'
tags: 'deployable'
condition: eq(variables['BuildConfiguration'], 'Release')