Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return task as Succeeded #20

Open
dazfez opened this issue Apr 6, 2020 · 0 comments
Open

Return task as Succeeded #20

dazfez opened this issue Apr 6, 2020 · 0 comments

Comments

@dazfez
Copy link

dazfez commented Apr 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant