Update to Jenkins 2.102 caused problem with cifs-plugin.

      The error is:
      ERROR: Failed to find configuration named [] check the global configuration
      When I open settings of a job the configuration looks empty and I cannot select share - the select is empty, field label also missing:

          [JENKINS-49023] Cannot upload file using cifs-plugin

          Jiri Meluzin added a comment -

          Here is the problematic part from config.xml from given job:

          <jenkins.plugins.publish__over__cifs.CifsPublisher>
            <configName></configName>
            <verbose>false</verbose>
            <transfers>
              <jenkins.plugins.publish__over__cifs.CifsTransfer>
                <remoteDirectory>eai\repo\ear\change</remoteDirectory>
                <sourceFiles>${BRANCH}/*.ear,${BRANCH}/*.xml,${BRANCH}/*.csv</sourceFiles>
                <excludes></excludes>
                <removePrefix></removePrefix>
                <remoteDirectorySDF>false</remoteDirectorySDF>
                <flatten>false</flatten>
                <cleanRemote>false</cleanRemote>
                <noDefaultExcludes>false</noDefaultExcludes>
                <makeEmptyDirs>false</makeEmptyDirs>
                <patternSeparator>[, ]+</patternSeparator>
              </jenkins.plugins.publish__over__cifs.CifsTransfer>
            </transfers>
            <useWorkspaceInPromotion>false</useWorkspaceInPromotion>
            <usePromotionTimestamp>false</usePromotionTimestamp>
          </jenkins.plugins.publish__over__cifs.CifsPublisher>
          

          And the problem is caused by the empty tag <configName>. Workaround is to update content of this element with correct value from jenkins.plugins.publish_over_cifs.CifsPublisherPlugin.xml - from element /jenkins.plugins.publish_overcifs.CifsPublisherPlugin-Descriptor/hostConfigurations/jenkins.plugins.publish_over_cifs.CifsHostConfiguration/name .

          Jiri Meluzin added a comment - Here is the problematic part from config.xml from given job: <jenkins.plugins.publish__over__cifs.CifsPublisher> <configName> </configName> <verbose> false </verbose> <transfers> <jenkins.plugins.publish__over__cifs.CifsTransfer> <remoteDirectory> eai\repo\ear\change </remoteDirectory> <sourceFiles> ${BRANCH}/*.ear,${BRANCH}/*.xml,${BRANCH}/*.csv </sourceFiles> <excludes> </excludes> <removePrefix> </removePrefix> <remoteDirectorySDF> false </remoteDirectorySDF> <flatten> false </flatten> <cleanRemote> false </cleanRemote> <noDefaultExcludes> false </noDefaultExcludes> <makeEmptyDirs> false </makeEmptyDirs> <patternSeparator> [, ]+ </patternSeparator> </jenkins.plugins.publish__over__cifs.CifsTransfer> </transfers> <useWorkspaceInPromotion> false </useWorkspaceInPromotion> <usePromotionTimestamp> false </usePromotionTimestamp> </jenkins.plugins.publish__over__cifs.CifsPublisher> And the problem is caused by the empty tag <configName>. Workaround is to update content of this element with correct value from jenkins.plugins.publish_over_cifs.CifsPublisherPlugin.xml - from element /jenkins.plugins.publish_ over cifs.CifsPublisherPlugin -Descriptor/hostConfigurations/jenkins.plugins.publish_ over _cifs.CifsHostConfiguration/ name .

          I found that when configuring a Post Build Action the list of shares does display properly.

          Hopefully, this info may help someone in tracking down the problem.

          Corneil du Plessis added a comment - I found that when configuring a Post Build Action the list of shares does display properly. Hopefully, this info may help someone in tracking down the problem.

          Geoff Butler added a comment -

          Not sure which issue to post in because I see there are several on this subject.

          I am having the same issue as those above. I did notice I am getting an error in the JS console


           

          Geoff Butler added a comment - Not sure which issue to post in because I see there are several on this subject. I am having the same issue as those above. I did notice I am getting an error in the JS console  

          Geoff Butler added a comment -

           Here are my global, project and plugin configs.  Cleansed of course.  If you need any more info please let me know
           

          Geoff Butler added a comment -  Here are my global, project and plugin configs.  Cleansed of course.  If you need any more info please let me know  

          Alex Earl added a comment -

          I believe I have a fix for this, I need to test out some stuff and make sure.

          Alex Earl added a comment - I believe I have a fix for this, I need to test out some stuff and make sure.

           slide_o_mix  Any update on this?  We are having a similar issue.  Send files to a windows share works as a Post Build step but not as a "Build" step.

          Matthew Klepeis added a comment -   slide_o_mix   Any update on this?  We are having a similar issue.  Send files to a windows share works as a Post Build step but not as a "Build" step.

          Alex Earl added a comment -

          Alex Earl added a comment - klepeis Can you try the HPI file from  https://ci.jenkins.io/job/Plugins/job/publish-over-cifs-plugin/job/master/ ?

          slide_o_mix Thanks! That did the trick.

           

          Matthew Klepeis added a comment - slide_o_mix Thanks! That did the trick.  

          Alex Earl added a comment -

          Fixed in 0.10

          Alex Earl added a comment - Fixed in 0.10

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

            slide_o_mix Alex Earl
            jiri_meluzin Jiri Meluzin
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: