Why does TeamCity change my CVS type to "unknown" when I specify an environment variable?

I'm trying to setup a new CVS repository in CVS. In CVS root I select "local" and then enter "%env.CVSROOT%" and then save. When I open the configuration again, the type has changed from "local" to "unknown". It doesn't make this change when I specify the path explicitly and it "Test Connection" seems to timeout unless I set the path explicitly.

3 comments
Comment actions Permalink

Uri,

> the type has changed from "local" to "unknown".
The drop-down actually has no effect on the settings stored. It is just a helper in specifying correct root.

I agree it is confusing, but seems a minor UI issue so far.

Is there anything other then drop-down value switch in UI?

0
Comment actions Permalink

It's a little bit more than confusing I think - it's broken. According to TeamCity documentation I should be able to use special values like environment variables in fields like this one but when I try to use %env.CVSROOT% TeamCity is changing the type from local to unknown and the checkout no longer works. My guess is the program is validating the result but not expanding the special values first, resutling in the incorrect conclusion that it wouldn't have been local because it doesn't look like a path. If I specify what CVSROOT is set to explicitly, then it remains as local and works fine. Of course, I'd prefer just to use the environment variable so that when I update it I also don't have to remember to update TeamCity. Granted, it doesn't happen often but at least it eliminates a stumbling block for others. Should I open a bug report maybe?

0
Comment actions Permalink

I opened a ticket for it at http://youtrack.jetbrains.net/issue/TW-19444. Feel free to update it there if you like.

0

Please sign in to leave a comment.