--- title: "Ensure Release" ---
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.

Ensures a release exists in another application.

Script usage:

Ensure-Release(
	[Application: <text>],
	[ReleaseNumber: <text>],
	[Pipeline: <text>],
	[ReleaseName: <text>],
	[Variables: <%(key1: value1, ...)>]
);

This operation may be prefixed with Core::, although this is a built-in namespace and isn't really necessary.

Arguments:

NameFormatScript UsageUsage Notes
In application
text
Application
Default value is "$ApplicationName".
Release number
text
ReleaseNumber
Default value is "$ReleaseNumber".
Pipeline name
text
Pipeline
Default value is "$PipelineName".
Release name
text
ReleaseName
Variables
%(key1: value1, ...)
Variables
Value note: "%(var1: 1000, var2: $HdarFsServer, ...)".

Example:

Ensure-Release
(
    Application: Hdars.Packager,
    ReleaseNumber: $ReleaseNumber,
    Pipeline: AutoCreate,
    Variables: %(TargetServer: Tst001, ReleaseType: $ReleaseType)
);