This documentation is archived and is not being maintained.

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.

The following example stops running build number Nightly.025 which is in the AdventureWorks team project on server01.

>TFSBuild stop http://server01:8080 AdventureWorks Nightly.025
Show: