Skip to content

Laukes/Tag-TeamCity-Build-From-Build-Step

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Tag-TeamCity-Build-From-Build-Step

TeamCity does not have a build-in feature to tag a build in a build stept but there is a workaroud for that -> using REST API https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206830245-Add-build-tag-from-a-build-step.

Arguments for the script

  • $1 - server url
  • $2 - password (special characters makes it to fail)
  • $3 - build Id (if tweaked then can be used other TC build locator)
  • $4 - tag name

Example of calling the script

  • from CMD:
"C:\Program Files\Git\bin\sh.exe" -c "myPath/tagTCbuild.sh teamcity.mydomain.com mypassword %teamcity.build.id% 'myTag'"
  • from Powershell:
& "C:\Program Files\Git\bin\sh.exe" -c "myPath/tagTCbuild.sh teamcity.mydomain.com mypassword %teamcity.build.id% 'myTag'"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%