Where is email-config.xml?

I'm having trouble getting the email notification working and have read in the forum that there is an email-config.xml file. I've looked everywhere and can't find it. Anyone know where it is? My TC version 1.0 build 1654 is installed on WinXP Pro.

Thanks,
Ron

6 comments
Comment actions Permalink

Hello Ron,

email-config.xml file is located in the .BuildServer/config folder. However
I would recommend you to edit email settings from the web UI.

--
Pavel Sher


"Ron Coutts" <no_reply@jetbrains.com> wrote in message
news:4044868.1162342404422.JavaMail.itn@is.intellij.net...

I'm having trouble getting the email notification working and have read in
the forum that there is an email-config.xml file. I've looked everywhere
and can't find it. Anyone know where it is? My TC version 1.0 build 1654
is installed on WinXP Pro.

>

Thanks,
Ron



0
Comment actions Permalink

Hi Pavel,

I don't seem to have a .BuildServer folder. I've checked to ensure that hidden files and folders are shown in Windows Explorer, and I've done a search for .BuildServer and email-config.xml, but I get nothing. I've installed TC in C:\TeamCity and that's the folder that I've been recusively searching. What am I missing here?

As I understand it, email "notificator templates" are also in the email-config.xml file and are not editable via the Web interface, so that's another reason I'm looking for the email-config.xml file.

Thanks,
Ron

0
Comment actions Permalink

Hello Ron,

"Ron Coutts" <no_reply@jetbrains.com> wrote in message
news:10534905.1162394791776.JavaMail.itn@is.intellij.net...

Hi Pavel,

>

I don't seem to have a .BuildServer folder. I've checked to ensure that
hidden files and folders are shown in Windows Explorer, and I've done a
search for .BuildServer and email-config.xml, but I get nothing. I've
installed TC in C:\TeamCity and that's the folder that I've been
recusively searching. What am I missing here?

>


By default .BuildServer folder is created in the home directory of the user
under whom the server is running. You can override this behaviour if you set
system property teamcity.data.path. Read more about it here:
http://www.jetbrains.net/confluence/display/TW/TeamCity+FAQ#TeamCityFAQ-How%26nbsp%3BtoconfigurethelocationwhereTeamCitystoresitsdata%3F

As I understand it, email "notificator templates" are also in the
email-config.xml file and are not editable via the Web interface, so
that's another reason I'm looking for the email-config.xml file.

>

Yes you are right. For now TeamCity web UI does not allow you to configure
templates.This feature is planned for 1.5.

BTW all changes in the emal-config.xml should be reloaded automatically, so
you do not have to restart server.

--
Pavel Sher


0
Comment actions Permalink

Hi Paval,

Sorry, I'm having no luck finding email-config.xml. I read the link that you'd mentioned, but I cannot find the .BuildServer folder. After looking and looking and looking, I did searches for .BuildServer and email-config.xml across first the entire server hard drive (Win XP Pro box that I administer) and across my entire client hard drive (did not expect to find it on the client drive, but tried anyway). Came up empty.

The FAQ mentiones that the system property "teamcity.data.path" by default points to ${user.home}/.BuildServer. Exactly what file contains is this property? I've grepped for "teamcity.data.path" and can'f find it anywhere.

Has TC been tested on Win XP Pro? The email notifications are coming through, but the content refers to http://checkip.fraggers.net (see content of notification email below). I'm not sure what this URL is, but I didn't specify it.

Build FuncGen::BuildConfig1 #14 successful Build results: http://checkip.fraggers.net/viewLog.html?buildId=14&buildTypeId=bt2

============================================================================
Configure email notifications: http://checkip.fraggers.net/profile.html#notifications


Any more clues you can provide would be appreciated.

Thanks,
Ron

0
Comment actions Permalink

Hello Ron,

Sorry, I'm having no luck finding email-config.xml. I read the link that
you'd mentioned, but I cannot find the .BuildServer folder. After looking
and looking and looking, I did searches for .BuildServer and
email-config.xml across first the entire server hard drive (Win XP Pro box
that I administer) and across my entire client hard drive (did not expect
to find it on the client drive, but tried anyway). Came up empty.

>

The FAQ mentiones that the system property "teamcity.data.path" by default
points to ${user.home}/.BuildServer. Exactly what file contains is this
property? I've grepped for "teamcity.data.path" and can'f find it
anywhere.

>

"teamcity.data.path" system property allows you to override default
configuration folder location. This property is unset by default, so TC
should use ${user.home}/.BuildServer folder. On WinXP .BuildServer folder
usually located in the C:\Documents and Settings\]]>\.

I would suggest you to install latest EAP version of TeamCity. If you choose
to install from the TeamCity.exe file then you will be able to specify path
to a TC configuration directory right from the TC installer.

Has TC been tested on Win XP Pro? The email notifications are coming
through, but the content refers to http://checkip.fraggers.net (see
content of notification email below). I'm not sure what this URL is, but
I didn't specify it.


checkip.fraggers.net is the name of the server where TC is installed. This
is the name registered in your network DNS.

--
Pavel Sher


0
Comment actions Permalink

Hi Pavel,

Your suggestion to install the latest EAP version of TeamCity worked. Using TC version 1.0.0 there clearly was no .BuildServer folder. After installing TC version 1.0.1 (build 1712) the .BuildServer folder now exists. However I do now have a separate problem with accessing the "Edit Server Configuration" page, but I will start a separate thread for that.

You were also correct that the URL 'checkip.fraggers.net' was the name of the server where TC was installed. What happened was that a dynamic DNS updater tool called DirectUpdate installed on the TC server had somehow had URL 'fraggers.net' synonymous with (i.e. pointing to) URL 'localhost'. When I logged into TC using URL 'http://localhost:80', the build email notifications showed the link 'http://checkip.fraggers.net' instead of using the host name of the server that TC was installed on. When I logged into TC using URL 'http://:80', the email notifications then included working links to 'http://]]>'. You guys might be able to use hostname of the server instead of relying on what is cached in the DNS on the TC server.

Many thanks for your help.
Ron

0

Please sign in to leave a comment.