Forum Discussion
Dashers
Oct 07, 2024Copper Contributor
Azure DevOps git tag release pipeline
I'm wanting to get an Azure DevOps Pipeline (Classic) to run on a schedule against a Git Tag. This tag is set by a CD pipeline to mark when it has been deployed in the live environment. The scenari...
Kidd_Ip
Oct 08, 2024MVP
Try this, please make sure you are fully understand the script before apply:
$tag = "mytag"
$tags = git tag --list
if ($tags -contains $tag) {
Write-Host "Tag $tag found. Proceeding with the build."
# Add your build steps here
} else {
Write-Host "Tag $tag not found. Skipping the build."
exit 0
}