Change the build event status from a custom deployment script

kevin's Avatar

kevin

18 Nov, 2015 03:16 AM

Once in while a deployment get stuck, I would like to set the failed status so the notification would reflect a failed deployment.

What is the best way to change the event status? I see a possible way by using Add-AppveyorTest and Update-AppveyorTest in my script.

  1. Support Staff 1 Posted by Feodor Fitsner on 18 Nov, 2015 03:51 AM

    Feodor Fitsner's Avatar

    To fail the build you can call $host.SetShouldExit(1) if it's PowerShell or exit 1 if cmd.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:02 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac