Skip to content

Propagate exit codes through nested pwsh calls

  • Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA

What does this MR do?

Ensures the $LASTEXITCODE is propagated through the nested pwsh call.

Why was this MR needed?

Fixes allow_failure:exit_codes unusable with pwsh (on... (#37484)

What's the best way to test this MR?

Run CI with non-0, non-1, exit code on a Windows pwsh runner, using stdin for command passing.

What are the relevant issue numbers?

allow_failure:exit_codes unusable with pwsh (on... (#37484)

Edited by 🤖 GitLab Bot 🤖

Merge request reports