From 8305c685ed206cadf6cba5094b8c993ed52a2a4f Mon Sep 17 00:00:00 2001 From: Andreas Pardeike Date: Sat, 12 Mar 2022 21:50:26 +0100 Subject: [PATCH] makes jobs run sequencial --- azure-pipelines-job-template.yml | 3 +++ azure-pipelines.yml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/azure-pipelines-job-template.yml b/azure-pipelines-job-template.yml index bdba1185..48484480 100644 --- a/azure-pipelines-job-template.yml +++ b/azure-pipelines-job-template.yml @@ -1,4 +1,6 @@ parameters: +- name: dependsOn + type: [] - name: os type: string values: [windows, ubuntu, macOS] @@ -20,6 +22,7 @@ parameters: jobs: - job: ${{parameters.os}}_${{parameters.runtimeType}}_${{parameters.architecture}} + dependsOn: ${{parameters.DependsOn}} displayName: ${{replace(format('{0} {1} {2}', parameters.os, replace(parameters.runtimeType, 'dotnet', ''), parameters.architecture), ' ', ' ')}} pool: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 52b80ffb..724e2a4e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,12 +18,14 @@ jobs: - template: azure-pipelines-job-template.yml parameters: + DependsOn: windows_dotnet_x64 os: windows architecture: x86 frameworks: [net35, net45, net472, net48, netcoreapp3.0, netcoreapp3.1, net5.0] - template: azure-pipelines-job-template.yml parameters: + DependsOn: windows_dotnet_x86 os: windows architecture: x64 runtimeType: mono @@ -31,6 +33,7 @@ jobs: - template: azure-pipelines-job-template.yml parameters: + DependsOn: windows_mono_x64 os: windows architecture: x86 runtimeType: mono @@ -38,6 +41,7 @@ jobs: - template: azure-pipelines-job-template.yml parameters: + DependsOn: windows_mono_x86 os: ubuntu architecture: x64 frameworks: [net35, net45, net472, net48, netcoreapp3.0, netcoreapp3.1, net5.0] @@ -51,6 +55,7 @@ jobs: - template: azure-pipelines-job-template.yml parameters: + DependsOn: ubuntu_dotnet_x64 os: macOS architecture: x64 frameworks: [net35, net45, net472, net48, netcoreapp3.0, netcoreapp3.1, net5.0]