From 5fd5a2cce90e585bc8b000e9739cbf5bb2d3ea96 Mon Sep 17 00:00:00 2001 From: bganapa Date: Tue, 16 Nov 2021 00:37:27 -0800 Subject: [PATCH] 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 --- .azure-pipelines/SyncFromMainBranchConfig.json | 10 ++++++++++ .azure-pipelines/powershell-core.yml | 14 +++++++++++--- .azure-pipelines/windows-powershell.yml | 15 ++++++++++----- 3 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 .azure-pipelines/SyncFromMainBranchConfig.json diff --git a/.azure-pipelines/SyncFromMainBranchConfig.json b/.azure-pipelines/SyncFromMainBranchConfig.json new file mode 100644 index 0000000000..d41836733c --- /dev/null +++ b/.azure-pipelines/SyncFromMainBranchConfig.json @@ -0,0 +1,10 @@ +{ + "SyncPath": [ + "tools", + "src/lib", + "build.proj" + ], + "UnSyncPath": [ + ".azure-pipelines/SyncFromMainBranchConfig.json" + ] +} \ No newline at end of file diff --git a/.azure-pipelines/powershell-core.yml b/.azure-pipelines/powershell-core.yml index a0101b2862..506131668e 100644 --- a/.azure-pipelines/powershell-core.yml +++ b/.azure-pipelines/powershell-core.yml @@ -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) diff --git a/.azure-pipelines/windows-powershell.yml b/.azure-pipelines/windows-powershell.yml index 2f10dc6874..1c67e31b90 100644 --- a/.azure-pipelines/windows-powershell.yml +++ b/.azure-pipelines/windows-powershell.yml @@ -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 \ No newline at end of file + pwsh: true