Jenkins do not respect LF line termintor on Windows slave

15 views
Skip to first unread message

qunzi

unread,
Apr 6, 2016, 2:21:11 PM4/6/16
to Jenkins Users
My company use a Linux Jenkins box and the project is forced to use LF or the build will be failed in style checking.
I setup a windows Slave of this Linux Jenkins using "Launch  slave agent via Java Web Start" and Running the Jenkins slave service in this Windows box using a user in its home folder I added one .gitconfig file with te the following settings:
[core]
        eol = lf
        autocrlf = false

And "Source Code Management" setting for the Slave's task configuration , I use Git and repository pointing to gitlab repository, so Jenkins will create a workspace in the windows salve and copy the project over to this workspace. However, I notice that all files change to CRLF.
What I missed? Is this a known issue of Jenkins. Any help will be appreciated, I am stuck here for a while. Thanks.
Reply all
Reply to author
Forward
0 new messages