@@ -70,12 +70,12 @@ extends:
70
70
- task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
71
71
displayName : ESRP CodeSigning
72
72
inputs :
73
- ConnectedServiceName : ' ESRP-Release-Test '
74
- AppRegistrationClientId : ' 1992ee18-e9d2-42d6-ab20-94dd947a44b6 '
75
- AppRegistrationTenantId : ' 72f988bf-86f1-41af-91ab-2d7cd011db47 '
76
- AuthAKVName : ' vscjavaci '
77
- AuthCertName : ' vscjava-esrprelease-auth '
78
- AuthSignCertName : ' VSCJava-CodeSign '
73
+ ConnectedServiceName : $(EsrpConnectionServiceName)
74
+ AppRegistrationClientId : $(AppRegistrationClientId)
75
+ AppRegistrationTenantId : $(AppRegistrationTenantId)
76
+ AuthAKVName : $(AuthAKVName)
77
+ AuthCertName : $(AuthCertName)
78
+ AuthSignCertName : $(AuthSignCertName)
79
79
FolderPath : server
80
80
Pattern : com.microsoft.java.test.*.jar
81
81
signConfigType : inlineSignParams
@@ -113,7 +113,7 @@ extends:
113
113
- task : CmdLine@2
114
114
displayName : vsce package --pre-release
115
115
inputs :
116
- script : npx @vscode/vsce@latest package --pre-release
116
+ script : npx @vscode/vsce@latest package --pre-release -o extension.vsix
117
117
# ## Copy files for APIScan
118
118
- task : CopyFiles@2
119
119
displayName : " Copy Files for APIScan"
@@ -133,8 +133,41 @@ extends:
133
133
condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
134
134
env :
135
135
AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
136
+ - script : npx @vscode/vsce@latest generate-manifest -i extension.vsix -o extension.manifest
137
+ displayName : ' Generate extension manifest'
138
+ - script : cp extension.manifest extension.signature.p7s
139
+ displayName : ' Prepare manifest for signing'
140
+ - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
141
+ inputs :
142
+ ConnectedServiceName : $(EsrpConnectionServiceName)
143
+ AppRegistrationClientId : $(AppRegistrationClientId)
144
+ AppRegistrationTenantId : $(AppRegistrationTenantId)
145
+ AuthAKVName : $(AuthAKVName)
146
+ AuthCertName : $(AuthCertName)
147
+ AuthSignCertName : $(AuthSignCertName)
148
+ FolderPath : ' .'
149
+ Pattern : ' extension.signature.p7s'
150
+ signConfigType : inlineSignParams
151
+ inlineOperation : |
152
+ [
153
+ {
154
+ "keyCode": "CP-401405",
155
+ "operationSetCode": "VSCodePublisherSign",
156
+ "parameters" : [],
157
+ "toolName": "sign",
158
+ "toolVersion": "1.0"
159
+ }
160
+ ]
161
+ SessionTimeout : 90
162
+ MaxConcurrency : 25
163
+ MaxRetryAttempts : 5
164
+ PendingAnalysisWaitTimeoutMinutes : 5
165
+ displayName : ' Sign extension'
136
166
- task : CopyFiles@2
137
167
displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)"
138
168
inputs :
139
- Contents : " *.vsix"
169
+ Contents : |
170
+ extension.vsix
171
+ extension.manifest
172
+ extension.signature.p7s
140
173
TargetFolder : $(Build.ArtifactStagingDirectory)
0 commit comments