Jenkins and plugins versions report
N/A - This applies to the repository's local PowerShell test scripts.
What Operating System are you using (both controller, and any agents involved in the problem)?
Windows (Local build/development environment)
Reproduction steps
- Run a test where
Get-SutImage attempts to locate a Dockerfile that doesn't exist yet.
- Run
Get-JenkinsPassword on PowerShell 7.3+ with $PSNativeCommandUseErrorActionPreference = $true while the container is still booting.
Expected Results
Get-SutImage should gracefully print its intended friendly error message ("Wrong Dockerfile path format or file does not exist").
Get-JenkinsPassword should silently return $null if the container isn't ready so the test suite can keep polling.
Actual Results
Get-SutImage uses Resolve-Path right before the Test-Path check, which violently throws an ItemNotFoundException and crashes the script before the friendly error can ever print.
Get-JenkinsPassword relies on docker exec failing silently. In PS 7.3+, a failing native command throws a terminating exception, crashing the entire test suite on modern runners.
Anything else?
No response
Are you interested in contributing a fix?
Yes
Jenkins and plugins versions report
N/A - This applies to the repository's local PowerShell test scripts.
What Operating System are you using (both controller, and any agents involved in the problem)?
Windows (Local build/development environment)
Reproduction steps
Get-SutImageattempts to locate a Dockerfile that doesn't exist yet.Get-JenkinsPasswordon PowerShell 7.3+ with$PSNativeCommandUseErrorActionPreference = $truewhile the container is still booting.Expected Results
Get-SutImageshould gracefully print its intended friendly error message ("Wrong Dockerfile path format or file does not exist").Get-JenkinsPasswordshould silently return$nullif the container isn't ready so the test suite can keep polling.Actual Results
Get-SutImageusesResolve-Pathright before theTest-Pathcheck, which violently throws anItemNotFoundExceptionand crashes the script before the friendly error can ever print.Get-JenkinsPasswordrelies ondocker execfailing silently. In PS 7.3+, a failing native command throws a terminating exception, crashing the entire test suite on modern runners.Anything else?
No response
Are you interested in contributing a fix?
Yes