2019-08-22 02:19:11 +03:00
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pool:
|
2023-12-23 03:04:15 +03:00
|
|
|
vmImage: 'windows-latest'
|
2019-09-05 03:06:43 +03:00
|
|
|
timeoutInMinutes: 10
|
2019-08-22 02:19:11 +03:00
|
|
|
|
|
|
|
steps:
|
2019-09-05 03:47:01 +03:00
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: 'NuGet restore'
|
|
|
|
inputs:
|
|
|
|
restoreSolution: '$(Build.SourcesDirectory)\Forge.sln'
|
|
|
|
|
2019-09-05 03:00:23 +03:00
|
|
|
- task: VSBuild@1
|
2020-01-25 02:06:27 +03:00
|
|
|
displayName: 'Build .NET sln for tests'
|
2019-09-05 03:00:23 +03:00
|
|
|
inputs:
|
|
|
|
solution: '$(Build.SourcesDirectory)\Forge.sln'
|
|
|
|
platform: 'Any CPU'
|
2019-09-05 04:03:33 +03:00
|
|
|
configuration: Release
|
|
|
|
|
|
|
|
- task: VSTest@2
|
2019-09-05 20:48:16 +03:00
|
|
|
displayName: 'Run Tests'
|
2019-09-05 04:03:33 +03:00
|
|
|
inputs:
|
|
|
|
testAssemblyVer2: |
|
2020-01-23 02:02:50 +03:00
|
|
|
$(Build.SourcesDirectory)\Forge.TreeWalker.UnitTests\obj\Release\Microsoft.Forge.TreeWalker.UnitTests.dll
|
2019-09-05 20:48:16 +03:00
|
|
|
runInParallel: True
|
2019-09-05 20:13:41 +03:00
|
|
|
|
2020-01-25 02:06:27 +03:00
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build .NET sln and pack'
|
|
|
|
inputs:
|
|
|
|
solution: '$(Build.SourcesDirectory)\Forge.sln'
|
|
|
|
platform: 'Any CPU'
|
|
|
|
configuration: Release
|
|
|
|
msbuildArgs: '-t:pack'
|
2024-01-09 22:46:59 +03:00
|
|
|
|
|
|
|
- task: UseDotNet@2
|
|
|
|
inputs:
|
|
|
|
packageType: 'sdk'
|
|
|
|
version: '6.0.100'
|
|
|
|
- task: UseDotNet@2
|
|
|
|
inputs:
|
|
|
|
packageType: 'runtime'
|
|
|
|
version: '2.1.23'
|
|
|
|
|
2020-01-23 23:25:21 +03:00
|
|
|
- task: EsrpCodeSigning@1
|
|
|
|
displayName: 'ESRP CodeSigning - Authenticode'
|
|
|
|
inputs:
|
|
|
|
ConnectedServiceName: 'Forge ESRP CodeSign2'
|
|
|
|
FolderPath: '$(Build.SourcesDirectory)\Forge.TreeWalker\bin\Release'
|
|
|
|
Pattern: 'Microsoft.Forge.TreeWalker.dll'
|
|
|
|
signConfigType: 'inlineSignParams'
|
|
|
|
OpusName: 'Microsoft Forge TreeWalker'
|
2020-01-25 01:52:10 +03:00
|
|
|
OpusInfo: 'https://www.github.com/microsoft/forge'
|
2020-01-23 23:25:21 +03:00
|
|
|
inlineOperation: |
|
|
|
|
[ {
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"keyCode": "CP-230012",
|
|
|
|
"operationSetCode": "SigntoolVerify",
|
|
|
|
"parameters": [ ],
|
|
|
|
"toolName": "sign",
|
|
|
|
"toolVersion": "1.0"
|
|
|
|
}]
|
|
|
|
|
2020-01-14 00:36:44 +03:00
|
|
|
- task: EsrpCodeSigning@1
|
2020-01-23 23:25:21 +03:00
|
|
|
displayName: 'ESRP CodeSigning - NuGet'
|
2020-01-14 00:36:44 +03:00
|
|
|
inputs:
|
2020-01-14 01:00:33 +03:00
|
|
|
ConnectedServiceName: 'Forge ESRP CodeSign2'
|
2020-01-25 01:52:10 +03:00
|
|
|
FolderPath: '$(Build.SourcesDirectory)\Forge.TreeWalker\bin\Release'
|
2021-02-28 12:35:39 +03:00
|
|
|
Pattern: 'Microsoft.Forge.TreeWalker*.symbols.nupkg'
|
2020-01-14 00:36:44 +03:00
|
|
|
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'
|
|
|
|
|
2019-09-05 20:48:16 +03:00
|
|
|
- task: NuGetCommand@2
|
2019-09-06 03:36:53 +03:00
|
|
|
displayName: 'NuGet push AzureArtifacts'
|
2019-09-05 20:48:16 +03:00
|
|
|
inputs:
|
|
|
|
command: push
|
2021-02-28 12:35:39 +03:00
|
|
|
packagesToPush: '$(Build.SourcesDirectory)\Forge.TreeWalker\bin\Release\Microsoft.Forge.TreeWalker*.symbols.nupkg'
|
2019-09-05 20:48:16 +03:00
|
|
|
publishVstsFeed: 'ForgeArtifacts'
|
2019-09-06 04:41:39 +03:00
|
|
|
allowPackageConflicts: true
|