Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I use Bamboo on Windows to checkout Unix-style?

Hello,

I'm working as a consultant on a project using Bitbucket and Bamboo (both installed on Windows). Neither did I install the tools, nor do I have direct access to the installation, but I can make requests for config changes. Here's the problem:

I need to build an artifact which is supposed to be used on a Linux machine. While I can properly checkout text files using Git Extensions (with core.autocrlf=input) on my local(!) Windows machine and verify that in the repo the files have Unix-style line endings (LF), the artifact produced by my Bamboo build plan (using "Source Code Checkout" task) contains Windows-style endings (CRLF), which breaks my deployment process on the Linux box.

How can I influence the behaviour of the "Source Code Checkout" task in my build plan to enforce Unix-style line endings (like setting core.autocrlf to input or false)?

1 answer

1 accepted

1 vote
Answer accepted
Foong Atlassian Team Jul 25, 2018

Create .gitattributes file in the repository with the following content:

* text eol=lf

Thank you so much! So far I only considered only git config, but your solution is just perfect for my case, appreciate it!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

670 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you