Skip to content

Instantly share code, notes, and snippets.

@robdmoore
Created December 15, 2014 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robdmoore/44221cc1028ac038931b to your computer and use it in GitHub Desktop.
Save robdmoore/44221cc1028ac038931b to your computer and use it in GitHub Desktop.
Using GitVersion to publish tags to Git repository on various CI servers

TeamCity

Command Line > Custom Script

"C:\Program Files (x86)\Git\bin\git.exe" tag "%dep.YOUR_CI_BUILD_CONFIG.GitVersion.SemVer%"
"C:\Program Files (x86)\Git\bin\git.exe" push https://%GitUsername%:%GitPassword%@%GitUrl% "%dep.YOUR_CI_BUILD_CONFIG.GitVersion.SemVer%"

Bamboo

Executable > Git Version

/exec "cmd" /execArgs "/c C:\PROGRA~2\git\cmd\git.exe tag %GitVersion_SemVer% && C:\PROGRA~2\git\cmd\git.exe push https://USERNAME:PASSWORD@SERVER/GITPATH.git %GitVersion_SemVer%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment