microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.49k stars 2.61k forks source link

How to get pipeline task status for a specific task? #16626

Closed hilalsaygin closed 1 year ago

hilalsaygin commented 2 years ago

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Question, Bug, or Feature?
Question

Enter Task Name: Status info of a specific pipeline task

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Issue Description

My purpose is to get the status of a specific pipeline task in a job.
I've tried to send an API call referencing the method at the https://docs.microsoft.com/en-us/rest/api/azure/devops/release/releases/get-task-log?view=azure-devops-rest-6.0&tabs=HTTP but it only returned the running log of the task. Is there exist any method to get the status information of a pipeline task? Can we achieve to get status for one task? Any suggestions and directives is appreciated.

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

[Insert error from the logs here for a quick overview]

anotherancientalien commented 2 years ago

Hi, I have the same problem. Please provide a proper way. Best

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

hilalsaygin commented 1 year ago

Any update on the solution method of the task?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days