jenkinsci / jenkinsci/agent-setup-plugin
[JENKINS-20654] Empty folders are not copied to the slave
- Dominant language
- Java
- Stars
- 11
- Forks
- 23
- Avg merge
- 21h 13m
- Merged PRs (30d)
- 1
Description
When copying files to the slaves the slave-setup-plugin misses directories that do not contain ordinary files.
The reason seems to be that the plugin uses the copyRecursiveTo method of the FilePath class to copy the files (Line 92 in SetupDeployer). The implementation of this method only acts upon files and then creates parent directories (Line 1895-1900 of FilePath). This results in creating only directories that contain directly or indirectly files.
---
Originally reported by cfrommeyer, imported from: Empty folders are not copied to the slave
Raw content of original issue
When copying files to the slaves the slave-setup-plugin misses directories that do not contain ordinary files.
The reason seems to be that the plugin uses the copyRecursiveTo method of the FilePath class to copy the files (Line 92 in SetupDeployer). The implementation of this method only acts upon files and then creates parent directories (Line 1895-1900 of FilePath). This results in creating only directories that contain directly or indirectly files.
- environment:
Slave-Setup-Plugin 1.6; Jenkins 1.537; Linux; JBoss 7.1
Contributor guide
Assessment
This issue has not been assessed yet.