Skip to content

Commit

Permalink
Limit the minor version for baselines to 5 (#2438)
Browse files Browse the repository at this point in the history
Limit the minor version for baselines to 5 to avoid updating the
baseline to a version that is not released for SaaS.

Fixes
[AB#555469](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/555469)
  • Loading branch information
mazhelez authored Dec 3, 2024
1 parent 479a8dd commit 7c758a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/scripts/EnlistmentHelperFunctions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function Get-PackageLatestVersion() {
if ($PackageName -eq "AppBaselines-BCArtifacts") {
# For app baselines, use the previous minor version as minimum version
if ($majorMinorVersion.Minor -gt 0) {
$minimumVersion = "$($majorMinorVersion.Major).$($majorMinorVersion.Minor - 1)"
$minimumVersion = "$($majorMinorVersion.Major).$([Math]::Min($majorMinorVersion.Minor - 1, 5))" # limit the minor version to 5, as it is the maximum minor version for SaaS
} else {
$minimumVersion = "$($majorMinorVersion.Major - 1)"
}
Expand Down

0 comments on commit 7c758a8

Please sign in to comment.