2019-10-23 23:40:14 +03:00
|
|
|
trigger:
|
2022-06-16 08:18:16 +03:00
|
|
|
- main
|
2019-10-23 23:40:14 +03:00
|
|
|
|
|
|
|
pool:
|
2022-07-07 15:44:35 +03:00
|
|
|
vmImage: 'windows-2022' # name of the pool to run this job in
|
2019-10-23 23:40:14 +03:00
|
|
|
demands:
|
|
|
|
- msbuild
|
|
|
|
- visualstudio
|
|
|
|
- vstest
|
|
|
|
|
|
|
|
variables:
|
|
|
|
solution: '**/*.sln'
|
|
|
|
buildPlatform: 'x86|x64|ARM'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
|
2022-07-07 15:44:35 +03:00
|
|
|
jobs:
|
|
|
|
- job: x64_build
|
|
|
|
steps:
|
|
|
|
- task: VSBuild@1
|
|
|
|
inputs:
|
|
|
|
platform: 'x64'
|
|
|
|
solution: '$(solution)'
|
|
|
|
configuration: '$(buildConfiguration)'
|
|
|
|
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
|
|
inputs:
|
2023-04-25 07:18:26 +03:00
|
|
|
scanType: 'Register'
|
2022-07-07 15:44:35 +03:00
|
|
|
verbosity: 'Verbose'
|
2023-04-25 07:18:26 +03:00
|
|
|
alertWarningLevel: 'Low'
|
2022-07-07 15:44:35 +03:00
|
|
|
|
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
|
|
inputs:
|
|
|
|
packageFeedSelector: 'nugetOrg'
|
|
|
|
versionSelector: 'latestPreRelease'
|
|
|
|
|
|
|
|
- task: VSTest@2
|
|
|
|
inputs:
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: '**\*test*.dll'
|
|
|
|
searchFolder: '$(System.DefaultWorkingDirectory)'
|
|
|
|
runOnlyImpactedTests: false
|
|
|
|
runInParallel: false
|
|
|
|
rerunFailedTests: true
|
|
|
|
rerunMaxAttempts: 3
|
|
|
|
|
2022-07-26 14:56:41 +03:00
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
inputs:
|
|
|
|
targetPath: '$(Build.SourcesDirectory)\LogMonitor\x64\Release\'
|
|
|
|
artifactType: 'pipeline'
|
|
|
|
artifactName: '64-bit'
|
|
|
|
|
2022-07-07 15:44:35 +03:00
|
|
|
- job: x86_build
|
|
|
|
steps:
|
|
|
|
- task: VSBuild@1
|
|
|
|
inputs:
|
|
|
|
platform: 'x86'
|
|
|
|
solution: '$(solution)'
|
|
|
|
configuration: '$(buildConfiguration)'
|
|
|
|
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
|
|
inputs:
|
|
|
|
scanType: 'LogOnly'
|
|
|
|
verbosity: 'Verbose'
|
|
|
|
alertWarningLevel: 'High'
|
|
|
|
|
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
|
|
inputs:
|
|
|
|
packageFeedSelector: 'nugetOrg'
|
|
|
|
versionSelector: 'latestPreRelease'
|
|
|
|
|
|
|
|
- task: VSTest@2
|
|
|
|
inputs:
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: '**\*test*.dll'
|
|
|
|
searchFolder: '$(System.DefaultWorkingDirectory)'
|
|
|
|
runOnlyImpactedTests: false
|
|
|
|
runInParallel: false
|
|
|
|
rerunFailedTests: true
|
|
|
|
rerunMaxAttempts: 3
|
2022-07-26 14:56:41 +03:00
|
|
|
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
|
|
inputs:
|
|
|
|
targetPath: '$(Build.SourcesDirectory)\LogMonitor\Release\'
|
|
|
|
artifactType: 'pipeline'
|
|
|
|
artifactName: '32-bit'
|