On the Build menu, click Stop Build, or click the button on the toolbar.
This stops the build that is in progress.