From 15f57f5008399a62d388f6e1493b1c0ade42a5e2 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Wed, 24 Jul 2024 10:17:53 +0200 Subject: [PATCH] chore: Pin GitVersion to v5 in pipeline and update templates (#479) --- CHANGELOG.md | 3 +++ Sampler/Templates/Sampler/azure-pipelines.yml.template | 2 +- .../Sampler/azure-pipelines_dsccommunity.yml.template | 2 +- azure-pipelines.yml | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 273c7271..09f4b9c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Pinned GitVersion to v5 in the pipeline since v6 is not yet supported, also + updated templates to pin GitVersion v5. Workaround for issue [#477](https://github.com/gaelcolas/Sampler/issues/477). + ## [0.118.1] - 2024-07-20 ### Added diff --git a/Sampler/Templates/Sampler/azure-pipelines.yml.template b/Sampler/Templates/Sampler/azure-pipelines.yml.template index d3a1376b..8e45b7a2 100644 --- a/Sampler/Templates/Sampler/azure-pipelines.yml.template +++ b/Sampler/Templates/Sampler/azure-pipelines.yml.template @@ -27,7 +27,7 @@ stages: vmImage: 'ubuntu-latest' steps: - pwsh: | - dotnet tool install --global GitVersion.Tool + dotnet tool install --global GitVersion.Tool --version 5.* $gitVersionObject = dotnet-gitversion | ConvertFrom-Json $gitVersionObject.PSObject.Properties.ForEach{ Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'." diff --git a/Sampler/Templates/Sampler/azure-pipelines_dsccommunity.yml.template b/Sampler/Templates/Sampler/azure-pipelines_dsccommunity.yml.template index b95ce8f6..84ad9da7 100644 --- a/Sampler/Templates/Sampler/azure-pipelines_dsccommunity.yml.template +++ b/Sampler/Templates/Sampler/azure-pipelines_dsccommunity.yml.template @@ -29,7 +29,7 @@ stages: vmImage: 'ubuntu-latest' steps: - pwsh: | - dotnet tool install --global GitVersion.Tool + dotnet tool install --global GitVersion.Tool --version 5.* $gitVersionObject = dotnet-gitversion | ConvertFrom-Json $gitVersionObject.PSObject.Properties.ForEach{ Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'." diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ec02e69c..63090799 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,7 @@ stages: vmImage: 'windows-latest' steps: - pwsh: | - dotnet tool install --global GitVersion.Tool + dotnet tool install --global GitVersion.Tool --version 5.* $gitVersionObject = dotnet-gitversion | ConvertFrom-Json $gitVersionObject.PSObject.Properties.ForEach{ Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."