The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
fileOperations
: File OperationsfileOperations
fileCopyOperation
fileCopyOperation
includes : String
excludes : String
targetLocation : String
flattenFiles : boolean
renameFiles : boolean
sourceCaptureExpression : String
Example:
// folllowing structure:
// dir1/info-app.txt
// dir1/error-app.txt
fileOperations([fileCopyOperation(
includes: '**/dir1/*.txt',
targetLocation: 'logs/',
flattenFiles: true,
renameFiles: true,
sourceCaptureExpression: 'dir1/(.*)-app\\.txt$',
targetNameExpression: '$1.log')
])
will result in:
logs/info.log
logs/error.log
targetNameExpression : String
useDefaultExcludes : boolean
(optional)
fileCreateOperation
fileCreateOperation
fileName : String
fileContent : String
fileDeleteOperation
fileDeleteOperation
includes : String
excludes : String
useDefaultExcludes : boolean
(optional)
fileDownloadOperation
fileDownloadOperation
url : String
userName : String
password : String
targetLocation : String
targetFileName : String
proxyHost : String
proxyPort : String
fileJoinOperation
fileJoinOperation
sourceFile : String
targetFile : String
filePropertiesToJsonOperation
filePropertiesToJsonOperation
sourceFile : String
targetFile : String
fileRenameOperation
fileRenameOperation
source : String
destination : String
fileTransformOperation
fileTransformOperation
includes : String
excludes : String
useDefaultExcludes : boolean
(optional)
fileUnTarOperation
fileUnTarOperation
filePath : String
targetLocation : String
isGZIP : boolean
fileUnZipOperation
fileUnZipOperation
filePath : String
targetLocation : String
fileZipOperation
fileZipOperation
folderPath : String
outputFolderPath : String
folderCopyOperation
folderCopyOperation
sourceFolderPath : String
destinationFolderPath : String
folderCreateOperation
folderCreateOperation
folderPath : String
folderDeleteOperation
folderDeleteOperation
folderPath : String
folderRenameOperation
folderRenameOperation
source : String
destination : String
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.