Copying the pipeline yamls from the main branch to Azs-tzl branch (#16371)
* Copying the pipeline yamls from the main branch to Azs-tzl branch * Removing the tests from the pipelines * Removing a condition that excludes Azs-tzl branch * Sync .azure-pipeline with main branch * Sync .azure-pipeline with main branch Co-authored-by: wyunchi-ms <yunwang@microsoft.com>
This commit is contained in:
Родитель
4e0d47e0ca
Коммит
5fd5a2cce9
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"SyncPath": [
|
||||
"tools",
|
||||
"src/lib",
|
||||
"build.proj"
|
||||
],
|
||||
"UnSyncPath": [
|
||||
".azure-pipelines/SyncFromMainBranchConfig.json"
|
||||
]
|
||||
}
|
|
@ -2,17 +2,24 @@ variables:
|
|||
WindowsName: windows
|
||||
WindowsImage: vs2017-win2016
|
||||
LinuxName: linux
|
||||
LinuxImage: ubuntu-18.04
|
||||
LinuxImage: ubuntu-20.04
|
||||
MacOSName: macOS
|
||||
MacOSImage: macOS-10.14
|
||||
TestFramework: netcoreapp2.1
|
||||
TestTarget: Test
|
||||
Configuration: Debug
|
||||
DebugLocalBuildTasks: true
|
||||
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
|
||||
BuildTimeoutInMinutes: 120
|
||||
AnalysisTimeoutInMinutes: 120
|
||||
|
||||
trigger: none
|
||||
|
||||
jobs:
|
||||
- job: Build
|
||||
displayName: Build
|
||||
condition: succeeded()
|
||||
timeoutInMinutes: ${{ variables.BuildTimeoutInMinutes }}
|
||||
strategy:
|
||||
matrix:
|
||||
windows:
|
||||
|
@ -38,6 +45,7 @@ jobs:
|
|||
displayName: Analyze
|
||||
dependsOn: Build
|
||||
condition: succeeded()
|
||||
timeoutInMinutes: ${{ variables.AnalysisTimeoutInMinutes }}
|
||||
strategy:
|
||||
matrix:
|
||||
windows:
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
variables:
|
||||
WindowsName: windows
|
||||
WindowsImage: VS2017-Win2016
|
||||
TestFramework: netcoreapp2.2
|
||||
TestFramework: netcoreapp2.1
|
||||
TestTarget: Test
|
||||
Configuration: Debug
|
||||
DebugLocalBuildTasks: true
|
||||
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
|
||||
|
||||
trigger: none
|
||||
|
||||
jobs:
|
||||
- job: Build
|
||||
displayName: Build
|
||||
condition: succeeded()
|
||||
condition: and(eq(variables.IsGenerateBased, false), succeeded())
|
||||
pool:
|
||||
vmImage: ${{ variables.WindowsImage }}
|
||||
|
||||
|
@ -25,7 +29,8 @@ jobs:
|
|||
- job: Analyze
|
||||
displayName: Analyze
|
||||
dependsOn: Build
|
||||
condition: succeeded()
|
||||
condition: and(eq(variables.IsGenerateBased, false), succeeded())
|
||||
timeoutInMinutes: 90
|
||||
pool:
|
||||
vmImage: ${{ variables.WindowsImage }}
|
||||
|
||||
|
@ -44,7 +49,7 @@ jobs:
|
|||
displayName: 'Download BinSkim'
|
||||
inputs:
|
||||
command: custom
|
||||
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools'
|
||||
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools -Version 1.7.0'
|
||||
- task: PowerShell@2
|
||||
displayName: 'Run BinSkim'
|
||||
inputs:
|
||||
|
|
Загрузка…
Ссылка в новой задаче