I am using Jenkins on a Windows machine to build my .Net
code and to publish artifacts on an IIS server hosted on a remote windows server.
In this process I followed the following steps, but no file has been transferred.
Name: jenkispush
Hostname: IPv4 address
Username: Admin
Password: *********
Share: jenkins
Success Test configuration
Name: jenkispush
Source files: C:\Program Files (x86)\Jenkins\workspace\pncreengineerin
Remove prefix: C:\Program Files (x86)\Jenkins\workspace\pncreengineerin
Remote directory: $JENKINS_HOME
Exclude files:
Pattern separator: [, ]+
…
Remote directory is a date format: [x]
…
Time Elapsed 00:00:05.67
CIFS: Connecting from host [NYMCHNCPU326]
CIFS: Connecting with configuration [jenkispush] ...
CIFS: Disconnecting configuration [jenkispush] ...
CIFS: Transferred 0 file(s)
Finished: SUCCESS
Finally I got succeeded with this plugin by using pipeline job.
steps to configure pipeline job:
create a pipeline job.
Select "cifsPublisher: Send build artifacts to windows share" option from sample step
ex syntax: cifsPublisher(publishers: [[configName: 'XXX-Green-SERVER', transfers: [[cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'configuration', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'configuration.zip']], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false]])
in above example
source file: configuration.zip
remote directory(shared folder): configuration