Problem with the "Publish Over CIFS" plugin

610 views
Skip to first unread message

BCT Roel de Wildt

unread,
Apr 21, 2018, 3:47:57 PM4/21/18
to jenkins...@googlegroups.com
Hello,

When I execute a publish to a CIFS share with the following command in the Jenkinsfile (in the root of the project in Subversion):

cifsPublisher(publishers: [[configName: 'Published_prerelease', transfers: [[cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: '${BUILD_TAG}/pls', remoteDirectorySDF: false, removePrefix: 'output/pls', sourceFiles: 'output/pls/'],
 [cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: '${BUILD_TAG}/src', remoteDirectorySDF: false, removePrefix: 'sources/progress', sourceFiles: 'sources/progress/bmp*/**'],
 [cleanRemote: false, excludes: '', flatten: true, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: '${BUILD_TAG}/wrx', remoteDirectorySDF: false, removePrefix: 'sources/progress', sourceFiles: 'sources/progress/src*/**.wrx']],
usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false]])

Then I get the following error on execute:

ERROR: Exception when publishing, exception message [Failed to remove prefix from file named [Jenkinsfile]. Prefix [output/pls/] must be present in all file paths]

It looks like it is ignoring the sourceFiles option. I do not know why. The sample code is generated by Jenkins itself with the Pipeline Syntax generator. Could someone point me to the right direction to make this work?

System info:
Jenkins ver. 2.107.2
Publish Over CIFS 0.10

Kind regards,

Roel de Wildt

Slide

unread,
Apr 21, 2018, 5:28:21 PM4/21/18
to jenkins...@googlegroups.com
Are you missing one or more * in the sourceFiles definition in the first set of publishers?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/199E247AC0B52945AC9C5CA0041D807F3923D45A%40EXCH001.bct.local.
For more options, visit https://groups.google.com/d/optout.

BCT Roel de Wildt

unread,
Apr 21, 2018, 6:29:56 PM4/21/18
to jenkins...@googlegroups.com
I have changed the first set of publishers:
[cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: '${BUILD_TAG}/pls', remoteDirectorySDF: false, removePrefix: 'output/pls', sourceFiles: 'output/pls/**']

But I get the same error from Jenkins:
ERROR: Exception when publishing, exception message [Failed to remove prefix from file named [Jenkinsfile]. Prefix [output/pls/] must be present in all file paths]

The first set of publishers should only do the 'output/pls/....' files and subdirectories to the directory without 'output/pls' in it. If I remove the 'removePrefix' option, all the files in the workspace are published to the 'remoteDirectory'.

Any clue what I'm doing wrong?
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdbmoHmdqNiRP7dWZaSUrgvjrhXCVfBJfQrQd_cSMpLHQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages