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:
bganapa 2021-11-16 00:37:27 -08:00 коммит произвёл GitHub
Родитель 4e0d47e0ca
Коммит 5fd5a2cce9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 31 добавлений и 8 удалений

Просмотреть файл

@ -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:
@ -46,8 +54,8 @@ jobs:
linux:
OSName: ${{ variables.LinuxName }}
ImageName: ${{ variables.LinuxImage }}
macOS:
OSName: ${{ variables.MacOSName }}
macOS:
OSName: ${{ variables.MacOSName }}
ImageName: ${{ variables.MacOSImage }}
pool:
vmImage: $(ImageName)

Просмотреть файл

@ -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,10 +49,10 @@ 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:
targetType: filePath
filePath: tools/SecurityTools/RunBinSkim.ps1
pwsh: true
pwsh: true