Jenkins setup:2.252
configured a pipeline to transfer data from one folder to another folder .
.Code:stage(‘Backup’) {
sshPublisher(
continueOnError: false,
failOnError: true,
publishers: [
sshPublisherDesc(
configName: '10_224_14_87_',
verbose: true,
transfers: [
sshTransfer(
execCommand: 'robocopy "D:/sourcedata/testfolder/" "D:/destinydata/" /e /mir'
)
],
)
]
)
}
Error: Able to copy the code but getting below error.
Exception when publishing, exception message [Exec exit status not zero. Status [1]]