--- title: "$PromotionComments" ---
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 -> Functions within your BuildMaster instance to see exactly what operations are available.

Returns the comments for the specified promotion, or the promotion in the current context if values are not specified.

Script usage:

$PromotionComments([StageName], [BuildNumber], [ReleaseNumber], [ApplicationName])

Parameters:

NameDescription
StageNameStage Name
BuildNumberBuild Number
ReleaseNumberRelease Number
ApplicationNameApplication Name

Example:

# Stores comments from the current promotion in a variable
set $comments = $PromotionComments;