How to add symlink file to a gitlab repo
Asked Answered
C

1

11

How can I add symlink to file to gitlab repository?

Every time I run a pipeline from gitlab, the local symlink gets destroyed.

Any suggestions on how to create a symlink for a folder which resides inside of gitlab repo would be great.

Congress answered 1/10, 2017 at 7:27 Comment(0)
B
3

You can store in a Git repo a symlink (special entry 12000), but, as seen in this test, that would make the GitLab pipeline fail.
See gitlab-ce issue 27542 (though it is for the particular case of .gitlab-ci.yml being a symlink).

It is best if the pipeline first recreate the symlink, then process in its subsequent steps, with the normal build: regenerating it seems better than storing it.

Bui answered 1/10, 2017 at 7:51 Comment(1)
is there any solution to this problem? Its almost 2years.Littrell

© 2022 - 2024 — McMap. All rights reserved.