Skip to content

Commit 69ca97e

Browse files
authored
Updating signing configuration and version suffix (#267)
1 parent b529dc1 commit 69ca97e

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

azure-pipelines.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,38 @@ jobs:
8181
}
8282
]
8383
84+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
85+
displayName: 'Sdk: ESRP CodeSigning - Authenticode'
86+
condition: eq(variables.isReleaseBuild, true)
87+
inputs:
88+
ConnectedServiceName: 'ESRP Service'
89+
FolderPath: 'sdk\Sdk.Analyzers\bin\Release'
90+
Pattern: Microsoft.Azure.Functions.Worker.Sdk.Analyzers.dll
91+
signConfigType: inlineSignParams
92+
inlineOperation: |
93+
[
94+
{
95+
"KeyCode": "CP-230012",
96+
"OperationCode": "SigntoolSign",
97+
"Parameters": {
98+
"OpusName": "Microsoft",
99+
"OpusInfo": "http://www.microsoft.com",
100+
"FileDigest": "/fd \"SHA256\"",
101+
"PageHash": "/NPH",
102+
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
103+
},
104+
"ToolName": "sign",
105+
"ToolVersion": "1.0"
106+
},
107+
{
108+
"KeyCode": "CP-230012",
109+
"OperationCode": "SigntoolVerify",
110+
"Parameters": {},
111+
"ToolName": "sign",
112+
"ToolVersion": "1.0"
113+
}
114+
]
115+
84116
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
85117
displayName: 'MetadataLoader: ESRP CodeSigning - Authenticode'
86118
condition: eq(variables.isReleaseBuild, true)
@@ -118,7 +150,7 @@ jobs:
118150
condition: eq(variables.isReleaseBuild, true)
119151
inputs:
120152
ConnectedServiceName: 'ESRP Service'
121-
FolderPath: 'src\DotNetWorker\bin\Release'
153+
FolderPath: 'src'
122154
Pattern: Microsoft.Azure.Functions.Worker*.dll
123155
signConfigType: inlineSignParams
124156
inlineOperation: |

build/Common.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
<MinorProductVersion Condition="$(MinorProductVersion) == ''">0</MinorProductVersion>
77
<PatchProductVersion Condition="$(PatchProductVersion) == ''">0</PatchProductVersion>
88
<VersionPrefix Condition="$(VersionPrefix) == ''">$(MajorProductVersion).$(MinorProductVersion).$(PatchProductVersion)</VersionPrefix>
9+
<!--If a preview release, this should have the label with the separator (e.g.: -preview1)-->
910
<VersionSuffix Condition="$(VersionSuffix) == ''"></VersionSuffix>
1011
<IsLocalBuild Condition=" $(IsLocalBuild) == ''">True</IsLocalBuild>
1112
<BuildNumber Condition=" $(IsLocalBuild) == 'True'">local</BuildNumber>
12-
<Version Condition=" '$(BuildNumber)' != '' And $(Version) == ''">$(VersionPrefix)-$(VersionSuffix)-$(BuildNumber)</Version>
13-
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
13+
<Version Condition=" '$(BuildNumber)' != '' And $(Version) == ''">$(VersionPrefix)$(VersionSuffix)-$(BuildNumber)</Version>
14+
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)$(VersionSuffix)</Version>
1415
<AssemblyVersion Condition="$(AssemblyVersion) == ''">$(VersionPrefix).0</AssemblyVersion>
1516
<FileVersion Condition="$(FileVersion) == ''">$(AssemblyVersion)</FileVersion>
1617
<CommitHash Condition="$(CommitHash) == ''">N/A</CommitHash>

extensions/Worker.Extensions.RabbitMQ/Worker.Extensions.RabbitMQ.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<!--Version information-->
99
<MajorProductVersion>1</MajorProductVersion>
10-
<VersionSuffix>beta</VersionSuffix>
10+
<VersionSuffix>-beta</VersionSuffix>
1111
</PropertyGroup>
1212

1313
<Import Project="..\..\build\Extensions.props" />

0 commit comments

Comments
 (0)