Trying to call the following within a PowerShell script which is called from a new vNext Build step:
$buildDef = $buildServer.QueryBuildDefinitions($project)
Would have thought that this would return all the build definitions in my project. It only returns my XAML definitions, not my new vNext Build Definitions.
Do I need to use a different function to do this?
Want to get the list of my changesets in the last build since the last good build.
Previously I would have done something like the following:
$workspace = $buildDef.Workspace.Mappings[0].ServerItem
and then passed this $workspace
into the QueryHistory
function.
The XAML build system (and basically everything else in the "old" TFS object model) uses a SOAP API. The SOAP API is slowly being replaced with a REST API, at least for newer things.
Thus, the task-based build system does not have a SOAP API. It has a REST API. You can access it from C# code either by querying the REST API directly or by using the Team Foundation Server Client NuGet package .
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.