Moving file to another directory or folder

Viewed 23

What is the script to move a file from one folder to another just as like as xcopy in jenkins What is sript to move a file to another folder in jenkins in groovy language

1 Answers

You can use the File Operations plugin for this.

fileOperations([fileCopyOperation(
  excludes: '',
  flattenFiles: false,
  includes: '/source/location/**',
  targetLocation: "/to/copy/location"
)])
Related