| [ Web Proxy ] |
| Viewing: https://docs.psscriptbuilder.com/cmdlets/../../guides/../cmdlets/Test-PSScriptBuilderReleaseData/ | [Back] [Original] |
Tests the release data file for validity.
The Test-PSScriptBuilderReleaseData cmdlet validates the release data file from disk against the configured data structure. Returns $true if the file is valid, $false otherwise.
Validation errors are reported via Write-Error. This is useful when external tools have modified the release data file and you want to verify its integrity before proceeding with release operations.
if (Test-PSScriptBuilderReleaseData) {
Write-Host "Release data is valid, proceeding with update..."
Update-PSScriptBuilderReleaseData -Patch
} else {
Write-Host "Release data has errors, fix them first"
}
Validates release data and conditionally updates it.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
| Web Proxy Viewer | New URL | Original Page |