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

Job Import plugin is throwing 'Unable to read' error

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm trying to move few jobs from existing Jenkins setup (running on CentOS 6) to my local machine (Windows 7)

      When I run the job import on my local machine I get this error: 

      FAILED - Unable to read JENKINS_HOME\jobs\JOB_NAME\config.xml

      Pls note that the JENKINS_HOME is a path my local machine, while the job is to be imported from the remote machine.

      It works perfectly fine when I tried the exact same steps from a CentOS system.

       

      I suspect that the plugin doesn't work on cross-platform

        Attachments

        1. Untitled.png
          68 kB
          Vikram Sherigar

          Activity

          Hide
          escoem Emilio Escobar added a comment -

          Hello Vikram Sherigar can you please attach a support bundle of your jenkins instance running on windows 7? It can be easily generated with https://wiki.jenkins.io/display/JENKINS/Support+Core+Plugin
          Can you also attach the config.xml file of the job?

          > I suspect that the plugin doesn't work on cross-platform

          IIRC, It should

          Thanks.

          Show
          escoem Emilio Escobar added a comment - Hello Vikram Sherigar can you please attach a support bundle of your jenkins instance running on windows 7? It can be easily generated with https://wiki.jenkins.io/display/JENKINS/Support+Core+Plugin Can you also attach the config.xml file of the job? > I suspect that the plugin doesn't work on cross-platform IIRC, It should Thanks.
          Hide
          cozappz Cosmin Diga added a comment -

          Same behaviour here but importing from Windows to CentOS.

          One more thing, if I create the folder before importing, the import procedure removes the folder and then shows the error.

          But the error page does get refreshed with a stacktrace:

          java.lang.NullPointerException
          at org.jenkins.ci.plugins.jobimport.utils.URLUtils.safeURL(URLUtils.java:109)
          at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:123)
          at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
          at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
          at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)

          ..

          HTH

          Show
          cozappz Cosmin Diga added a comment - Same behaviour here but importing from Windows to CentOS. One more thing, if I create the folder before importing, the import procedure removes the folder and then shows the error. But the error page does get refreshed with a stacktrace: java.lang.NullPointerException at org.jenkins.ci.plugins.jobimport.utils.URLUtils.safeURL(URLUtils.java:109) at org.jenkins.ci.plugins.jobimport.JobImportAction.doImport(JobImportAction.java:123) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184) .. HTH

            People

            Assignee:
            escoem Emilio Escobar
            Reporter:
            sherigar_vikram Vikram Sherigar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: