From d9020a8d9273b113fc1f26d758b4933081c6d462 Mon Sep 17 00:00:00 2001 From: Federico Soldani Date: Wed, 10 Apr 2024 15:45:58 +0200 Subject: [PATCH 1/2] Fix pipeline code for environment name --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a28ef2d..f63c505 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,9 +22,9 @@ variables: - name: PublishEnvironment ${{ if startsWith( variables['Build.SourceBranch'], 'refs/tags/' ) }}: value: 'Release' - ${{ if startsWith( variables['Build.SourceBranch'], 'refs/heads/feature/' ) }}: + ${{ else if startsWith( variables['Build.SourceBranch'], 'refs/heads/feature/' ) }}: value: 'Development' - ${{ if startsWith( variables['Build.SourceBranch'], 'refs/heads/hotfix/' ) }}: + ${{ else if startsWith( variables['Build.SourceBranch'], 'refs/heads/hotfix/' ) }}: value: 'Hotfix' ${{ else }}: value: 'Development' From 32e14cfbac7351f16a7b3c95c722f5f129c94ba0 Mon Sep 17 00:00:00 2001 From: Federico Soldani Date: Wed, 10 Apr 2024 15:49:02 +0200 Subject: [PATCH 2/2] Fix pipeline code for environment name --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f63c505..6b9c883 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,9 +22,9 @@ variables: - name: PublishEnvironment ${{ if startsWith( variables['Build.SourceBranch'], 'refs/tags/' ) }}: value: 'Release' - ${{ else if startsWith( variables['Build.SourceBranch'], 'refs/heads/feature/' ) }}: + ${{ elseif startsWith( variables['Build.SourceBranch'], 'refs/heads/feature/' ) }}: value: 'Development' - ${{ else if startsWith( variables['Build.SourceBranch'], 'refs/heads/hotfix/' ) }}: + ${{ elseif startsWith( variables['Build.SourceBranch'], 'refs/heads/hotfix/' ) }}: value: 'Hotfix' ${{ else }}: value: 'Development'