lextm / vstsabort

Abort utility for VSTS
Apache License 2.0
7 stars 1 forks source link

Which version of TFS/VSTS? #1

Open icnocop opened 5 years ago

icnocop commented 5 years ago

Hi.

I want to abort a build as succeeded, but adding the following inline PowerShell script in a vNext build in TFS 2015 Update 4 didn't work as expected:

Write-Host “##vso[task.setvariable variable=agent.jobstatus;]canceled”
Write-Host “##vso[task.complete result=Canceled;]DONE”

The build was indicated as having failed.

Which versions of TFS/VSTS should be supported?

Thank you.

lextm commented 5 years ago

I only tested this against latest VSTS/Azure DevOps/Azure Pipelines. I don't have TFS2015 for testing.