Skip to content

Commit

Permalink
Set erroractionpreference for change log check
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan authored and azure-sdk committed Mar 20, 2024
1 parent e6b698d commit 464d698
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/common/scripts/ChangeLog-Operations.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ function Confirm-ChangeLogEntry {
Message = ""
}
}
else {
# Do not stop the script on error when status object is passed as param
$ErrorActionPreference = 'Continue'
}
$changeLogEntries = Get-ChangeLogEntries -ChangeLogLocation $ChangeLogLocation
$changeLogEntry = $changeLogEntries[$VersionString]

Expand Down
1 change: 1 addition & 0 deletions eng/common/scripts/Validate-All-Packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function ProcessPackage($PackageName, $ConfigFileDir)
-Devops_pat $Devops_pat
if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to validate package $PackageName"
exit 1
}
}

Expand Down
1 change: 1 addition & 0 deletions eng/common/scripts/Validate-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,6 @@ if ($IsReleaseBuild)
{
if (!$updatedWi -or $changelogStatus.Status -ne "Success" -or $apireviewDetails.ApiviewApproval.Status -ne "Approved" -or $apireviewDetails.PackageNameApproval.Status -ne "Approved") {
Write-Error "At least one of the Validations above failed for package $PackageName with version $versionString."
exit 1
}
}

0 comments on commit 464d698

Please sign in to comment.