Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55034

Cannot publish over CIFS from artifact directory using pipeline

    XMLWordPrintable

Details

    Description

      When trying to generate a pipeline script for the publish over CIFS plugin, there are two identical options, both called "Send build artifacts to a windows share".

        

      However, the options for the two are not identical. The first one has an option to "use workspace", and the help says "By default this plugin uses the artifacts directory (where archived artifacts are stored)."

      The second one has no options to choose where the files are taken from, and from the help it is clear that the workspace is always used. When I generate a pipeline script with this one, everything works as expected, but I cannot copy from the artifacts directory.

      So, I would like to try the other one, which allows me to copy from the artifacts directory. However, when I try to generate the pipeline script, the output from  the snippet generator is always just "step <object of type jenkins.plugins.publish_over_cifs.CifsPromotionPublisherPlugin>". 

      So how can I publish over CIFS from the artifacts directory?

       

      Options if I choose the first "send artifacts to a windows share":

       

      And output:

       

      Options if I choose the second one:

      And output:

      Attachments

        Activity

          This issue has been closed - please see the new Github Issue for this in the previous comment.

          gmcdonald Gavin McDonald added a comment - This issue has been closed - please see the new Github Issue for this in the previous comment.

          For your information, all publish-over-cifs component type JENKINS issues related to the Publish Over CIFS plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues/88
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-55034%22

          (Note: this is an automated bulk comment)

          gmcdonald Gavin McDonald added a comment - For your information, all publish-over-cifs component type JENKINS issues related to the Publish Over CIFS plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues/88 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-55034%22 (Note: this is an automated bulk comment)
          godskalk Øyvind R added a comment - - edited

          slide_o_mix ok, thanks.  

          Maybe you can help me with another problem: No matter what I put under "sourceFiles", the plugin just copies everything from the workspace to the CIFS share.  I don't want to report this as an issue yet since it seems likely it's just a user error. 

          Here is my pipeline script:

          cifsPublisher(publishers: [[configName: 'Test', transfers: [[cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: "${versionstring}", remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'build_output.txt']], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false]])

           

           Edit: Found the issue for the problem above (JENKINS-52461), and that it is caused by a missing separator character setting. I see that the snippet generator automatically puts [, ]+ as the default now, but for some reason this didn't happen when I generated my script. 

          godskalk Øyvind R added a comment - - edited slide_o_mix ok, thanks.   Maybe you can help me with another problem: No matter what I put under "sourceFiles", the plugin just copies everything from the workspace to the CIFS share.  I don't want to report this as an issue yet since it seems likely it's just a user error.  Here is my pipeline script: cifsPublisher(publishers: [[configName: 'Test', transfers: [ [cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '', remoteDirectory: "${versionstring}", remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'build_output.txt'] ], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false]])    Edit: Found the issue for the problem above ( JENKINS-52461 ), and that it is caused by a missing separator character setting. I see that the snippet generator automatically puts [, ] + as the default now, but for some reason this didn't happen when I generated my script. 
          slide_o_mix Alex Earl added a comment -

          The second option shouldn't be showing up (the one that generates the CifsPromotionPublisherPlugin stuff. It is for use with the promoted builds plugin, which doesn't really work in pipeline from what I remember. The workspace is the only location that items can be published from.

          slide_o_mix Alex Earl added a comment - The second option shouldn't be showing up (the one that generates the CifsPromotionPublisherPlugin stuff. It is for use with the promoted builds plugin, which doesn't really work in pipeline from what I remember. The workspace is the only location that items can be published from.

          People

            Unassigned Unassigned
            godskalk Øyvind R
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: