This Jenkins plugin copies data from a specified folder within $JENKINS_HOME/userContent
directory to the project workspace before each build.
- Copy files and directories recursively from
$JENKINS_HOME/userContent
to workspace - Optional: Make files executable on Unix/Linux systems (chmod 0755)
- Optional: Automatic cleanup after build completion
- Path validation for security
- Cross-platform support (Windows/Linux)
- Place your files in a subdirectory of
$JENKINS_HOME/userContent
- Configure the plugin in your job:
- Enter the relative path to your data folder
- Optionally enable "Make files executable"
- Optionally enable "Delete files after build"
If your Jenkins home is C:\Jenkins
and you want to copy files from C:\Jenkins\userContent\data\project1
, enter data\project1
in the plugin path configuration.
- Files are copied before the build starts
- Executable permissions (0755) are set only on Unix/Linux systems
- When deletion is enabled, files are removed after build completion
- Ensure build artifacts are not in the copied files list if you need to preserve them
- Jenkins 2.479.3 or newer
- Java 17 or newer