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
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
You can use the File Operations plugin for this.
fileOperations([fileCopyOperation(
excludes: '',
flattenFiles: false,
includes: '/source/location/**',
targetLocation: "/to/copy/location"
)])