Skip to content

Why does Powershell task truncate stderr? #12450

Closed
@richardgavel

Description

@richardgavel

If I use the Powershell task (with the errorActionPreference set to stop), if there is an error, it gets truncated, making it difficult to understand the underlying error. I have noticed the full errors shows when the errorActionPreference is set to continue, but then the pipeline will continue to execute even though an error occurred.

I then noticed this in the code and wonder why there is deliberate truncation (of both bytes in a line and number of lines) of the stderr steam and wonder why this was put in place?

https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/PowerShellV2/powershell.ts#L98

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions