Skip to content

jenkinsci/copy-data-to-workspace-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Copy Data to Workspace Plugin

Build Status Jenkins Security Scan Codecov Coverage

Installations Contributors Release

Introduction

This Jenkins plugin copies data from a specified folder within $JENKINS_HOME/userContent directory to the project workspace before each build.

Features

  • 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)

Usage

  1. Place your files in a subdirectory of $JENKINS_HOME/userContent
  2. 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"

Example

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.

Notes

  • 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

Requirements

  • Jenkins 2.479.3 or newer
  • Java 17 or newer

About

Jenkins copy-data-to-workspace-plugin plugin

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •