Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy empty reference directories too? #192

Open
batmat opened this issue Jan 28, 2016 · 2 comments
Open

Copy empty reference directories too? #192

batmat opened this issue Jan 28, 2016 · 2 comments

Comments

@batmat
Copy link
Member

batmat commented Jan 28, 2016

Hi,
I need to initialize an empty directory hierarchy for a custom plugin.
Just realized the jenkins.sh script is indeed designed to copy only files.

So, basically empty somedir/somesubdir in /usr/share/jenkins/ref/ is not gonna be copied.

Before proposing any patch, I wanted to check the rationale behind that.
Can someone explain why?

Thanks!
PS: I can work around the issue for some directories by putting "fake" files like with Git, but no with all as the files in there are supposed to be parsed.

@jossemarGT
Copy link

jossemarGT commented Mar 30, 2016

The only workaround I've found is to place a empty file inside those directories, as far I understand the entryrpoint will copy each file inside of ref directory so everything has Jenkins' ownership (since docker uses root for COPY/ADD)

@lemeurherve
Copy link
Member

@batmat could we close this old issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants