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

Creates and pushes a tag to a git repository.

Script usage:

Git::Ensure-Tag(
	Tag: <text>,
	[Commit: <text>],
	[Force: <true/false>],
	[From: <text>],
	[UserName: <text>],
	[Password: <text>],
	[RepositoryUrl: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Tag (default)
text
Tag
This argument is required.
Commit
text
Commit
Default value is "$Commit".
Force (overwrite)
true/false
Force
Repository connection
text
From
Default value is "$Repository".
User name
text
UserName
Value note: "Username from repository connection".
Password
text
Password
Value note: "Password from repository connection".
Repository URL
text
RepositoryUrl
Value note: "Repository URL from repository connection".