Our script needs two parameters and those need to be passed as arguments to the script. On the Execution section we specify that the tool is a PowerShell command. Most important part is adding the PowerShell script as a resource. Then variables are set and the call to the Team Room is made passing the received parameters.Ĭreating the tool in Visual Studio Release Management is fairly easy. I choose not to pass all the TFS configuration to the script, but if you want you can □Īfter declaring the parameters, the module (Wrapper to the Team Room API) is imported. It has two parameters, TeamRoomMessage and TeamRoomName. You can use the PowerShell ISE Editor to create this script.Ī little clarification on the script. To create a Tool a Custom PowerShell Script can be used, so let’s make a script that can post the message. Visual Studio Release Management allows for creating custom tools. In Part 2 of this series I figured out all the PowerShell commands needed to post a message to the Team Room. Or you can check out my Curation on Release Management here: Getting Started with Release Mangement I will not cover a ‘usual’ flow that will release an application based on a Team Foundation Server build, if you like more information on this please check out my post covering that here: Release Management with InRelease This is Part 3 in the series on Release Management + PowerShell + TFS TeamRoom API. In this post I am going to utilize the PowerShell Enabled TFS Team Room API logic from a Release Template in Visual Studio Release Management.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |