Skip to content

When deployment fails, automated build/deployment software doesn't pick up that info, resulting in a false-positive successful build #46

Open
@tbehunin

Description

@tbehunin

When using automated software to build/deploy solutions, they typically look at either the stderr stream or the return value of the script (zero or non-zero) to decipher whether the job succeeded or failed. When PackageWeb fails for whatever reason, the stderr stream isn't written to and/or the response returns zero. An easy fix for this is to call the "edit" PS command whenever an error occurs. For example:

Write-Host "Exiting with code 12345"
exit 12345

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions