I am using Jenkins on a Windows machine to build a Cygwin program. Recently that started to fail.
I turned out that was because Windows' git
seems to represent symbolic links in the repo as plain text files.
There are two possible approaches to solve this:
- Use Cygwin's
git
to do the checkout. - Convert the links (a.k.a. plain text files) to Cygwin links
The first turned out to be not as simple as I wished, pointing to Cygwin's git.exe
was not enough as we need the cygwin1.dll
in the path. This and some other issues made me abandon this apporach. I'm interested in suggestions on how to do that, in essence turning a Windows Jenkins into a Cygwin Jenkins.
However, turning Windows git
"links" into Cygwin links seemed feasable. What would be a simple way to do that and could be run as an initial step in the Jenkins build?