--- title: "Reject Build" ---
This is generated from the built in components of BuildMaster 2023.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Rejects a BuildMaster build.

Script usage:

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.

Arguments:

NameFormatScript UsageUsage 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".

Example:

Reject-Build $BuildToReject;