/teamcity-password-reset-plugin

TeamCity password reset plugin

Primary LanguageJavaMIT LicenseMIT

Password reset Teamcity plugin

This plugin allows you to reset your password in Teamcity. Just click "Reset password" at login screen.

Install

  • Build plugin from source or download binary
  • Shut down Teamcity
  • Copy plugin to %TEAMCITY_DATA_PATH%\plugins directory
  • Add email configuration: to the root element (<server>) in %TEAMCITY_DATA_PATH%\config\main-config.xml add this section:
<password-reset-plugin><smtp  port="<port>" host="<host>" username="<email login>" password="<email password>" fromAddress="<from address>" tls="<true or false>" ssl="<true or false>"/></password-reset-plugin>

for example

Plain SMTP

<password-reset-plugin><smtp  port="25" host="smtp.mailgun.com" username="mail@domain.com" password="trustno1" fromAddress="mail@domain.com" /></password-reset-plugin>

TLS

<password-reset-plugin><smtp  port="587" host="smtp.gmail.com" username="mail@domain.com" password="trustno1" fromAddress="mail@domain.com" tls="true" /></password-reset-plugin>

SSL

<password-reset-plugin><smtp  port="465" host="smtp.yandex.ru" username="mail@domain.com" password="trustno1" fromAddress="mail@domain.com" ssl="true" /></password-reset-plugin>

Don't like this manual setup? I don't like it too! But it is not possible (or I don't know how) to fetch global email settings from Teamcity using Teamcity open API.

  • Start TeamCity

Troubleshooting

The most common error is invalid SMTP configuration. Check teamcity-server.log for details.

If log file contains timeout exceptions it is possible that you need to enable tls or ssl connection.