Stop Command (Team Foundation Build)
The stop command stops a currently running Team Foundation Build build type.
Required Permissions
To use the stop command, you must have the Team Foundation Server Administer a build security permission set to Allow. For more information, see Team Foundation Server Permissions.
TFSBuild stop Teamfoundationserver TeamProject BuildNumber [/noprompt]
Parameters
Argument | Description |
---|---|
Teamfoundationserver |
The Team Foundation server URL. |
TeamProject |
The team project name for which this build exists. |
BuildNumber |
The build which must be stopped. If the build number has spaces, the spaces must be within quotation marks, for example "myBuild 123." |
Option | Description |
---|---|
/noprompt |
Do not prompt when stopping a build. |
Example
The following example stops running build number Nightly.025 which is in the AdventureWorks team project on server01.
>TFSBuild stop https://server01:8080 AdventureWorks Nightly.025
See Also
Tasks
How to: Stop a Build
How to: Create a New Build Type
Other Resources
Team Foundation Build Commands
Running Builds in Team Foundation Build
Working with Build Types in Team Foundation Build