Back    
Priority:
Type:
State:
Assignee:
Subsystem:
Affected versions:
Fixed in:

TW-1135

eaten end​-​of​-​lines

0
We use Subversion as sourcecontrol.

Files stored at svn that have '/n' only as line endings appeared without any end-of-line symbols at linux hosted buildAgent. This break our build since some steps base on line ending in that files.


Environment: linux, fc5, jdk 1.5.0_09

Issue wasresolved
Comments (21)
History (1)
Den Orlov Den Orlov 13 Nov 2006 12:48 (2 years ago)
Original file with correct end-of-lines
Den Orlov Den Orlov 13 Nov 2006 12:49 (2 years ago)
Eaten end of lines file grabbed from build agent's work directory
Den Orlov Den Orlov 13 Nov 2006 12:51 (2 years ago)
I've updated TeamCity to version 1.0.1 (build 1712) and still am experiencing the same problems
Olesya Smirnova Olesya Smirnova 13 Nov 2006 15:19 (2 years ago)
Could you please do "clean sources" for each agent?
Den Orlov Den Orlov 13 Nov 2006 15:46 (2 years ago)
It didn't help
Den Orlov Den Orlov 16 Nov 2006 14:36 (2 years ago)
Upgraded to build 1727, made "clean sources", still have the problem.
Olesya Smirnova Olesya Smirnova 16 Nov 2006 19:15 (2 years ago)
What is "svn:eol-style" property for the file?
Den Orlov Den Orlov 17 Nov 2006 12:19 (2 years ago)
C:\Projects\pm\mcm\portal\conf\default>svn proplist web.xml
Properties on 'web.xml':
svn:keywords

C:\Projects\pm\mcm\portal\conf\default>svn propget svn:keywords web.xml
LastChangedDate Author LastChangedRevision Id
Olesya Smirnova Olesya Smirnova 17 Nov 2006 13:27 (2 years ago)
BTW, could you check, does the problem appear in several specific files or in all text files?
Den Orlov Den Orlov 17 Nov 2006 13:33 (2 years ago)
Files with /r/n aren't affected
Olesya Smirnova Olesya Smirnova 17 Nov 2006 15:45 (2 years ago)
Could you please add system property to build "agent.save.patch" with value "true", change web.xml file and run a build.
In agent log will appear line "Patch is saved to file ${file.name}"
Please attach the file, at the moment I cannot localize the problem For me with the same file and the same properties it works.
Thanks a lot!
Den Orlov Den Orlov 17 Nov 2006 17:15 (2 years ago)
I didn't get where I shold specify agent.save.patch=true, sorry
Olesya Smirnova Olesya Smirnova 17 Nov 2006 17:46 (2 years ago)
Sorry for confusing request. I meant add this property to build (Administration->Edit configuration->Properties and requirement variables->Add new property...)
Den Orlov Den Orlov 20 Nov 2006 12:57 (2 years ago)
Hmmm. I've specified build's system property, changed web.xml at SVN, but didn't get the message at agent's log.

Does clean source at agent deletes project sources at agentRoot/work/ directory?
Does agent's log is agentRoot/logs/TeamCity.log?
Is it possible to check some log to ensure that property was really specified?
Olesya Smirnova Olesya Smirnova 21 Nov 2006 15:29 (2 years ago)
Does clean source at agent deletes project sources at agentRoot/work/ directory?
Yes, before a build start.

Does agent's log is agentRoot/logs/TeamCity.log?
Yes...

I've just checked it, for me it works.

Could you attach the whole agent log file?
Olesya Smirnova Olesya Smirnova 21 Nov 2006 18:52 (2 years ago)
Please attach file mentioned in line 27406:
/tmp/temp43379patch357
Thanks!
Olesya Smirnova Olesya Smirnova 21 Nov 2006 20:25 (2 years ago)
web.xml here has some line separators and differs from the attached one (broken-web).
Besides it was sent as binary and saved 'as is' without line separator transforming.
Could you please please check web.xml now? What is its content? Could you attach up to date one?
Den Orlov Den Orlov 23 Nov 2006 14:23 (2 years ago)
I've rechecked web.xml at agent's work directory. It is still the same (reattached as broken-web.xml).

Might be some SVN settings could affect that line endings were eaten? Might be some JVM/OS parameters?

You could contact me via icq (76460967) to facilitate investigation.
Olesya Smirnova Olesya Smirnova 23 Nov 2006 14:38 (2 years ago)
Thanks!
I added you. My ICQ login name is 'lesya'
Den Orlov Den Orlov 24 Nov 2006 13:45 (2 years ago)
I removed svn:keyword property from this file. End of lines wasn't eaten.
Den Orlov Den Orlov 24 Nov 2006 14:05 (2 years ago)
All logs from agent were attached