I have 2 build definition with 2 agent in TFS that run separately. builds run using one build one agent. one of builds should start when another build complete, because second build use first build result. second build should run in separate machine because it have specific demands that I don't have in first machine. I did some searching and found very little about tfs build triggers. I want when first build finished I could trigger second build. its possible??? I am using TFS 2017 Update 2.
What you would like to do is chaining builds (one build calls another build definition)。
This is not support by official yet. There had also been a related uservoice and under planned status:
Provide build configuration dependencies in TFS Build
Provide the ability to create build configuration dependencies such that the success of one build configuration can trigger another build configuration such as a successful build triggering the building of an installation package or a build configuration which deploys to a development or staging server.
For now, you could use Rest API to call another build definition and trigger the build as workaround. There is a custom build task written by Benj Huser which literally does the work perfectly. For more details have a look at his answer in this question: How to chain builds in TFS 2015?