Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jira-importer opened this issue Jan 18, 2018 · 22 comments
Closed

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

jira-importer opened this issue Jan 18, 2018 · 22 comments

Comments

@jira-importer
Copy link
Collaborator

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:


Originally reported by jiri_meluzin, imported from: Cannot upload file using cifs-plugin
  • assignee: slide_o_mix
  • status: Resolved
  • priority: Major
  • resolution: Fixed
  • resolved: 2018-04-20T01:48:47+10:00
  • imported: 2022/01/10
@jira-importer
Copy link
Collaborator Author

slide_o_mix:

Did you create a share configuration in the global config?

@jira-importer
Copy link
Collaborator Author

jiri_meluzin:

Yes, it is regression bug. It worked before upgrade to 2.102.

 

Anyway, where is storage of share configuration from the global config? I mean where is file that stores global config?

 

 

@jira-importer
Copy link
Collaborator Author

jiri_meluzin:

I have found workaround, the Job's config contained empty name (which is caused by the bug in the configuration - no shares are available to select), so I updated the config with correct name on filesystem and reload config of jobs. Then it works.

@jira-importer
Copy link
Collaborator Author

setsunafseisei:

Jiri Meluzin Could you screen shot the workaround you did? I am running into the same issue. Where did you update the config with the filesystem etc? Thank you in advance.

@jira-importer
Copy link
Collaborator Author

slide_o_mix:

Are there any issues in the javascript console?

@jira-importer
Copy link
Collaborator Author

slide_o_mix:

What version of Jenkins were you on previously?

@jira-importer
Copy link
Collaborator Author

setsunafseisei:

Thanks for responding,

Alex Earl I am using Jenkins ver. 2.89.3, which is recently updated, and no see issue in the javascript console. I am running into the same issue Jiri Meluzin is getting. I tried to manually editing the job's config.xml file element by manual placing the CIFS name in, but the field is still blank when I try running the job. I dont know if i have to restart my service. The error I am getting is:

ERROR: Failed to find configuration named [] check the global configuration

@jira-importer
Copy link
Collaborator Author

slide_o_mix:

Can you post your global config xml and specific job config.xml? Please scrub it of anything that someone on the internet should not see.

@jira-importer
Copy link
Collaborator Author

jiri_meluzin:

Andre S. - config.xml must be edited manually and then the configuration of the job must not be edited via Jenkins GUI. After you updated the config.xml you must reload all jobs configs from filesystem via Jenkins GUI

https://i.stack.imgur.com/TqKv7.png

Afterwards the job should be able to upload file.

@jira-importer
Copy link
Collaborator Author

setsunafseisei:

Jiri Meluzin Thank you, I will try your workaround, hopefully within a few days   

Alex Earl Whenever I get a chance I will upload the necessary documents/screenshot to help. But I think the initial screenshots that Jiri Meluzin uploaded has the same exact settings as I have. Only difference is that the job name and config name are different, but still the CIFS issue where I cannot get the configuration job name to load is happening.

@jira-importer
Copy link
Collaborator Author

slide_o_mix:

Andre S. The screenshots aren't very helpful sadly, I am looking for the config.xml FILES which will show me much more information.

@jira-importer
Copy link
Collaborator Author

jiri_meluzin:

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


  
  false
  
    
      eai\repo\ear\change
      ${BRANCH}/*.ear,${BRANCH}/*.xml,${BRANCH}/*.csv
      
      
      false
      false
      false
      false
      false
      [, ]+
    
  
  false
  false

And the problem is caused by the empty tag . 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 .

@jira-importer
Copy link
Collaborator Author

corneil_duplessis:

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.

@jira-importer
Copy link
Collaborator Author

mrbook:

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


 

@jira-importer
Copy link
Collaborator Author

mrbook:

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

@jira-importer
Copy link
Collaborator Author

slide_o_mix:

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

@jira-importer
Copy link
Collaborator Author

klepeis:

 Alex Earl  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.

@jira-importer
Copy link
Collaborator Author

@jira-importer
Copy link
Collaborator Author

klepeis:

Alex Earl Thanks! That did the trick.

 

@jira-importer
Copy link
Collaborator Author

slide_o_mix:

Fixed in 0.10

@jira-importer
Copy link
Collaborator Author

[Duplicates: JENKINS-48551

@jira-importer
Copy link
Collaborator Author

[Originally related to: JENKINS-49211]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant