We have a dedicated Linux server, where we store all builds of our software. The Linux server is running the current samba version. Samba is configured with 'security=user' and the shares are read/write for guest, so no authentication is required.
      If I add a new CIFS Share, leave username and password blank and test the configuration, I get the following error message:

      Cannot read share (or directory on share)
      jenkins.plugins.publish_over.BapPublisherException: Exception when testing config. URL [smb://...], Message: [Logon failure: unknown user name or password.]

      This message also occurs if I use the plugin as post build step.

      So currently we can't use this plugin in our build environment.

      I had a quick look in the source code and maybe there is a problem in the createSmbFile(final String url) function in CifsClient.java because I don't know, if 'auth' can ever be null and therefore the else path can never be reached.

          [JENKINS-21440] Error copying files to Linux samba share

          Alex Earl added a comment -

          I'm unable to reproduce this. Please reopen if it is still an issue

          Alex Earl added a comment - I'm unable to reproduce this. Please reopen if it is still an issue

          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/53
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-21440%22

          (Note: this is an automated bulk comment)

          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/53 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-21440%22 (Note: this is an automated bulk comment)

            slide_o_mix Alex Earl
            merciless Michael Rau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: