jenkinsci / jenkinsci/agent-setup-plugin

[JENKINS-20654] Empty folders are not copied to the slave

Open
#104 1 comment 0 reactions 0 assignees View on GitHub
component:slave-setup-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): slave-setup-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 20251216-225446

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.