TFS support for in-build custom web sockets

0 votes

I want to create a custom build step in TFS that can call an API in my other server. I wan to send the result from my server to TFS and alert that the job has ended and this should trigger the next step.

But in order to do this I need a Callback URL to send the output to my server. I want to know How do I open a small web socket in TFS(tfs plugin)? Is there anything in TFS to help me achieve this? OR any other custom external plugin I can use?

I'll take this plugin as a part of my build and the execution will finish only when I get a response from my server and after I'll show this data in another plugin in the summary build page. Can TFS do this or should I try and implement it myself?

Jul 19, 2018 in Other DevOps Questions by Atul
• 10,240 points
645 views

1 answer to this question.

0 votes

TFS has no native support for this. You can tray and invoke TFS API to queue/stop builds using TFS. You can also execute a loop to check if the result from your external server. If it's finished, then continue.

Eg: powershell

$inprocess=true
$loopDelayseconds = 300
while($inprocess)
{
   # send request to server and check the result
   # if result is finished, set inprocess to false, else call Start-Sleep.

    Start-Sleep -s $loopDelayseconds
}

If your tasks is taking a bit more time than usual, you can change the build job timeout in Build definition > General > Build job timeout

answered Jul 19, 2018 by DareDev
• 6,890 points

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers

Is there a way to embed a framework for ios build in Azure DevOps?

I want to build an IPA package ...READ MORE

Mar 20, 2022 in Other DevOps Questions by Kichu
• 19,040 points
625 views
+1 vote
2 answers

Unable to build TFS project because files not found

Please make a folder in solution Nd ...READ MORE

answered May 17, 2019 in Other DevOps Questions by Shashikesh Mishra
4,789 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,058 views
+2 votes
1 answer
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP