From d40a5973afc17fe4636f1f2c19322ca514bc9dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Laban?= Date: Wed, 18 Sep 2024 12:06:45 -0400 Subject: [PATCH] ci: Adjust packages publish pool --- build/ci/.azure-devops-publish-nuget-dev.yml | 31 +++++++++-------- .../.azure-devops-publish-nuget-prod-dev.yml | 28 +++++++++------- build/ci/.azure-devops-publish-nuget-prod.yml | 33 +++++++++++-------- build/ci/.azure-devops-stages.yml | 6 ++++ 4 files changed, 59 insertions(+), 39 deletions(-) diff --git a/build/ci/.azure-devops-publish-nuget-dev.yml b/build/ci/.azure-devops-publish-nuget-dev.yml index 0ead91100673..0f843b768014 100644 --- a/build/ci/.azure-devops-publish-nuget-dev.yml +++ b/build/ci/.azure-devops-publish-nuget-dev.yml @@ -1,16 +1,21 @@ jobs: -- deployment: 'Nuget' - displayName: 'Nuget Publish Dev' - environment: 'Uno UI Development' - strategy: - runOnce: - deploy: - steps: - - download: current - artifact: 'NuGet_Packages' - patterns: '**/.nupkg' - displayName: Download artifact WebApp - - template: templates/nuget-publish-dev.yml - - template: templates/nuget-publish-public.yml + pool: + vmImage: ${{ parameters.vmImage }} + + steps: + - deployment: 'Nuget' + displayName: 'Nuget Publish Dev' + environment: 'Uno UI Development' + strategy: + runOnce: + deploy: + steps: + - download: current + artifact: 'NuGet_Packages' + patterns: '**/.nupkg' + displayName: Download artifact WebApp + + - template: templates/nuget-publish-dev.yml + - template: templates/nuget-publish-public.yml diff --git a/build/ci/.azure-devops-publish-nuget-prod-dev.yml b/build/ci/.azure-devops-publish-nuget-prod-dev.yml index 232bdce2fc1a..36416f32dbfb 100644 --- a/build/ci/.azure-devops-publish-nuget-prod-dev.yml +++ b/build/ci/.azure-devops-publish-nuget-prod-dev.yml @@ -1,14 +1,18 @@ jobs: -- deployment: 'Nuget_Prod_Dev' - displayName: 'Nuget Publish Prod Dev' - environment: 'Uno UI Production' - strategy: - runOnce: - deploy: - steps: - - download: current - artifact: 'NuGet_Packages' - patterns: '**/.nupkg' - displayName: Download artifact WebApp - - template: templates/nuget-publish-dev.yml + pool: + vmImage: ${{ parameters.vmImage }} + + steps: + - deployment: 'Nuget_Prod_Dev' + displayName: 'Nuget Publish Prod Dev' + environment: 'Uno UI Production' + strategy: + runOnce: + deploy: + steps: + - download: current + artifact: 'NuGet_Packages' + patterns: '**/.nupkg' + displayName: Download artifact WebApp + - template: templates/nuget-publish-dev.yml diff --git a/build/ci/.azure-devops-publish-nuget-prod.yml b/build/ci/.azure-devops-publish-nuget-prod.yml index efb6d796b564..b654e9c77cfc 100644 --- a/build/ci/.azure-devops-publish-nuget-prod.yml +++ b/build/ci/.azure-devops-publish-nuget-prod.yml @@ -1,17 +1,22 @@ jobs: -- deployment: 'Nuget_Prod_Nuget_Org' - displayName: 'Nuget Publish Prod NuGet.org' - environment: 'Uno UI Production' - strategy: - runOnce: - deploy: - steps: - - download: current - artifact: 'NuGet_Packages' - patterns: | - **/.nupkg - !*Private*.nupkg - displayName: Download artifact WebApp - - template: templates/nuget-publish-public.yml + pool: + vmImage: ${{ parameters.vmImage }} + + steps: + + - deployment: 'Nuget_Prod_Nuget_Org' + displayName: 'Nuget Publish Prod NuGet.org' + environment: 'Uno UI Production' + strategy: + runOnce: + deploy: + steps: + - download: current + artifact: 'NuGet_Packages' + patterns: | + **/.nupkg + !*Private*.nupkg + displayName: Download artifact WebApp + - template: templates/nuget-publish-public.yml diff --git a/build/ci/.azure-devops-stages.yml b/build/ci/.azure-devops-stages.yml index 49113260be0d..831b67a78f62 100644 --- a/build/ci/.azure-devops-stages.yml +++ b/build/ci/.azure-devops-stages.yml @@ -242,15 +242,21 @@ stages: dependsOn: packages_build jobs: - template: .azure-devops-publish-nuget-dev.yml + parameters: + vmImage: '$(windows2022HostedVMImage)' - stage: Publish_Prod_Dev condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['build.reason'], 'PullRequest'))) dependsOn: packages_build jobs: - template: .azure-devops-publish-nuget-prod-dev.yml + parameters: + vmImage: '$(windows2022HostedVMImage)' - stage: Publish_Prod_Public condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['build.reason'], 'PullRequest'))) dependsOn: Publish_Prod_Dev jobs: - template: .azure-devops-publish-nuget-prod.yml + parameters: + vmImage: '$(windows2022HostedVMImage)'