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
52 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,810 points

Related Questions In Other DevOps Questions

+1 vote
2 answers

Unable to build TFS project because files not found

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

answered May 16 in Other DevOps Questions by Shashikesh Mishra
680 views
0 votes
1 answer

How do I share Build Definitions across Projects in Visual Studio Online?

VSTS does not support sharing build definitions ...READ MORE

answered Jul 5, 2018 in Other DevOps Questions by DareDev
• 6,810 points
37 views
0 votes
1 answer

What is the best practice for updating an already existing web app deployment using ARM?

The Service Principal solution, through the SDK, ...READ MORE

answered Jul 8, 2018 in Other DevOps Questions by Atul
• 10,240 points
38 views
0 votes
1 answer

How do I preserve local ivy repository in Bluemix BUILD & DEPLOY?

You're right--the pipeline spins up a new ...READ MORE

answered Jul 17, 2018 in Other DevOps Questions by Atul
• 10,240 points
42 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
217 views
0 votes
1 answer
0 votes
1 answer