Hi Team
After jenkins build ,I am trying to push build folder from jenkins to destination uisng below pipeline command.
stage(‘Upload to server’) {
def deployStatus = “”
try {
ws(this.WORKSPACE_PATH) {
sshPublisher(
continueOnError: false,
failOnError: true,
publishers: [
sshPublisherDesc(
configName: 'nuvamaprivate',
verbose: true,
transfers: [
sshTransfer(
cleanRemote: true,
flatten: false,
makeEmptyDirs: true,
noDefaultExcludes: false,
patternSeparator: '[, ]+',
remoteDirectory: '/',
remoteDirectorySDF: false,
removePrefix: '',
sourceFiles: 'build/**/*'
)
],
)
Here in the above pipeline where i use cleanRemote : true , :-Its deleting all the folder
I need command where i can delete specific build folder.