Skip to content

Return task as Succeeded #20

@dazfez

Description

@dazfez

Hi,

I'm using this extension to run a Powershell script to restore an Oracle Database.
The Oracle import (impdp) runs successfully but with some errors and returns a $LastExitCode of 5.
I want my script to check the $LastExidCode and mark the task as successful.
I've tried the following but my task always completes as failed:-

Write-Host "DB Restored successfully"
Write-Host "##vso[task.complete result=Succeeded;]DONE"
##vso[task.complete result=Succeeded;]DONE

Am i doing something wrong here?

Thanks for your help,

Darren

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions