Skip to content

Commit

Permalink
fix: teamcity tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
wintbiit committed Apr 13, 2024
1 parent 5ed7d36 commit 838c97b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion output/teamcity.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func (o *TeamcityOutput) Output(result *types.Result, _ *types.SemanticOptions)
teamCityParam("semantic.release.next.major", fmt.Sprintf("%d", result.NextRelease.Major))
teamCityParam("semantic.release.next.minor", fmt.Sprintf("%d", result.NextRelease.Minor))
teamCityParam("semantic.release.next.patch", fmt.Sprintf("%d", result.NextRelease.Patch))
teamCityParam("semantic.release.next.tag", result.NextRelease.Tag())
if result.LatestRelease.Reference != nil {
teamCityParam("semantic.release.latest.version", result.LatestRelease.Version.ShortString())
teamCityParam("semantic.release.latest.hash", utils.HashShort(result.LatestRelease.Hash()))
Expand All @@ -51,5 +52,5 @@ func teamCityParam(key, value string) {
}

func teamCityTag(tag string) {
fmt.Printf("##teamcity[addBuildTag name='%s']\n", tag)
fmt.Printf("##teamcity[addBuildTag '%s']\n", tag)
}

0 comments on commit 838c97b

Please sign in to comment.