---
title: "Reject Build"
---
Rejects a BuildMaster build.
Reject-Build(
	[Application: <text>],
	[ReleaseNumber: <text>],
	BuildNumber: <text>,
	[FailIfAlreadyRejected: <true/false>],
	[RejectionNotes: <text>]
);
This operation may be prefixed with BuildMaster::, although this is a built-in namespace and isn't really necessary.
| Name | Format | Script Usage | Usage Notes | 
|---|---|---|---|
| In application | text | Application | Default value is "$ApplicationName". | 
| With release | text | ReleaseNumber | Default value is "$ReleaseNumber". | 
| ☆ Build number (default) | text | BuildNumber | This argument is required. | 
| Fail if build is already rejected | true/false | FailIfAlreadyRejected | Value note: "false". | 
| Rejection notes | text | RejectionNotes | Value note: "unspecified". | 
Reject-Build $BuildToReject;