Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity Parameterise VCS password

I am running TeamCity 9x and it seems that it does not support a VCS password parameter, meaning I have to either use SSH keys (proving difficult, but that's a separate issue) or enter the password for every build config which is unacceptable as we will eventually have well over 100 build config so changing the password would be too arduous.

Is there a way that I can specify the password once and inject that into each VCS root?

like image 422
Myles McDonnell Avatar asked Dec 10 '15 12:12

Myles McDonnell


1 Answers

Kind of workaround solution, but still.

You could try parameterizing other VCS Root details instead!

Create one VCS root, provide username/password for it, parametrize whatever you want with standard Teamcity parameters. Then there are few possible ways of using parameters:

  • Provide parameters for every build as default values;
  • Ask for parameter value on build run (for manual builds);
  • Provide several build templates with parameters preset.

For example, on my current project we are using Git VCS Root with branch name parametrized. All builds with this VCS root are either have branch name set in their default parameters or use value provided from run menu.

like image 124
arghtype Avatar answered Oct 23 '22 14:10

arghtype