I'm using the default process template that comes with TFS 2013
and I have a post build script that runs after the build is done. The script is a Powershell
script that copies over some files required for me to generate an MSI. What I want to know is how to retrieve information about my build such as the MSBuild Arguments
that I stated. I need to get the value that I set in the build definition. Is there a way that I can access this without writing functions that go on TFS
and retrieve the build definition information?
Quite a few of the TFS variables get defined as environment variables. See these example scripts: https://tfsbuildextensions.codeplex.com/SourceControl/latest#Scripts/GatherItemsForDrop.ps1 Here is the environment variable reference: http://msdn.microsoft.com/en-us/library/hh850448.aspx While that doesn't contain an env var for MSBuild arguments, you can always pass the same arguments to your PowerShell script via the post-build script arguments
process parameter.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.