Skip to content

Commit 6749e02

Browse files
Fix esrpcodesigning task (#191)
This commit updates esrpcodesigning task to version 2. The earlier version of task failed due to dependency on dotNet 2.1
1 parent 3f7c4ad commit 6749e02

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

build/azure-pipelines/build-product.yml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,46 +80,39 @@ stages:
8080
inputs:
8181
buildType: 'current'
8282
targetPath: '$(Pipeline.Workspace)'
83-
- task: UseDotNet@2
84-
inputs:
85-
packageType: 'sdk'
86-
version: '2.1.x'
87-
- task: EsrpCodeSigning@1
83+
- task: EsrpCodeSigning@2
8884
displayName: Sign Windows binary
8985
inputs:
9086
ConnectedServiceName: 'Code Signing'
9187
FolderPath: '$(Pipeline.Workspace)'
9288
Pattern: 'sqlcmd.exe'
9389
signConfigType: 'inlineSignParams'
94-
SessionTimeout: '600'
95-
MaxConcurrency: '5'
96-
MaxRetryAttempts: '5'
9790
inlineOperation: |
9891
[
9992
{
10093
"keyCode": "CP-230012",
10194
"operationSetCode": "SigntoolSign",
10295
"parameters": [
103-
{
104-
"parameterName": "OpusName",
105-
"parameterValue": "go-sqlcmd"
106-
},
107-
{
108-
"parameterName": "OpusInfo",
109-
"parameterValue": "https://github.com/microsoft/go-sqlcmd"
110-
},
111-
{
112-
"parameterName": "PageHash",
113-
"parameterValue": "/NPH"
114-
},
115-
{
116-
"parameterName": "FileDigest",
117-
"parameterValue": "/fd sha256"
118-
},
119-
{
120-
"parameterName": "TimeStamp",
121-
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
122-
}
96+
{
97+
"parameterName": "OpusName",
98+
"parameterValue": "go-sqlcmd"
99+
},
100+
{
101+
"parameterName": "OpusInfo",
102+
"parameterValue": "https://github.com/microsoft/go-sqlcmd"
103+
},
104+
{
105+
"parameterName": "PageHash",
106+
"parameterValue": "/NPH"
107+
},
108+
{
109+
"parameterName": "FileDigest",
110+
"parameterValue": "/fd sha256"
111+
},
112+
{
113+
"parameterName": "TimeStamp",
114+
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
115+
}
123116
],
124117
"toolName": "signtool.exe",
125118
"toolVersion": "6.2.9304.0"
@@ -137,6 +130,9 @@ stages:
137130
"toolVersion": "6.2.9304.0"
138131
}
139132
]
133+
SessionTimeout: '60'
134+
MaxConcurrency: '50'
135+
MaxRetryAttempts: '5'
140136
- task: ArchiveFiles@2
141137
displayName: Zip Windows amd64 binary
142138
inputs:

0 commit comments

Comments
 (0)