From e6d4d9d48a69e8e02c38d4597bb38a28902fe360 Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 11 Aug 2019 15:02:31 +0100 Subject: [PATCH] Try matrix jobs not stages --- azure-pipelines.yml | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 81358dac1..094ce98f7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,17 +20,21 @@ variables: stages: - stage: Build - strategy: - matrix: - Linux: - imageName: 'ubuntu-16.04' - Mac: - imageName: 'macos-10.13' - Windows: - imageName: 'vs2017-win2016' jobs: - job: Backend + strategy: + matrix: + Linux: + osName: 'Linux' + imageName: 'ubuntu-16.04' + Mac: + osName: 'MacOS' + imageName: 'macos-10.13' + Windows: + osName: 'Windows' + imageName: 'vs2017-win2016' + pool: vmImage: $(imageName) steps: @@ -53,10 +57,20 @@ stages: - bash: ./build.sh --only-backend displayName: Build Lidarr Backend - publish: $(outputFolder) - artifact: 'WindowsBackend' + artifact: '$(osName)Backend' - - job: Windows_Frontend - displayName: Windows Frontend + - job: Frontend + strategy: + matrix: + Linux: + osName: 'Linux' + imageName: 'ubuntu-16.04' + Mac: + osName: 'MacOS' + imageName: 'macos-10.13' + Windows: + osName: 'Windows' + imageName: 'vs2017-win2016' pool: vmImage: $(imageName) steps: @@ -69,7 +83,7 @@ stages: - bash: ./build.sh --only-frontend displayName: Build Lidarr Frontend - publish: $(outputFolder) - artifact: 'WindowsFrontend' + artifact: '$(osName)Frontend' # - job: macOS # displayName: macOS @@ -110,11 +124,11 @@ stages: pool: vmImage: 'vs2017-win2016' steps: + - checkout: self - download: current artifact: 'WindowsBackend' - download: current artifact: 'WindowsFrontend' - - bash: ./build.sh --only-packages displayName: Create Lidarr Packages - task: PublishPipelineArtifact@0