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

Import failed when trying to import from another centos version jenkins

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • job-import-plugin
    • None
    • Centos 7 on local jenkins, Centos 6 on remote
      Java 1.8 (open jdk)

      When i try to import jenkins job from one instance (centos6.6) to another (centos7) (using plugin) i get error:

      FAILED - Unable to read /var/lib/jenkins/jobs/HEAD/config.xml
      

      However, i thought the reason was on the remote jenkins instance, so i tried to import job on 3rd instance (centos6.6 too) and it succeeded.
      I think the reason is in OS version difference.
      Also i tried to copy job folders manually, then reload config, but still no succeeded, jobs are unseen.

          [JENKINS-30529] Import failed when trying to import from another centos version jenkins

          Thomas Storm added a comment -

          guys, any news?

          Thomas Storm added a comment - guys, any news?

          Thomas Storm added a comment -

          It was missing folder plugin, which was causing errors in job copy, sorry, false alarm

          Thomas Storm added a comment - It was missing folder plugin, which was causing errors in job copy, sorry, false alarm

          John Zhang added a comment -

          To me, the problem is because of Maven. I tried to import a list of project. All the projects that have nothing to do with Maven were imported successfully. However, all the Maven projects failed.
          I tried to manually copy a Maven project from the jobs directory in the old Jenkins server to the new server, and manage to build it. During this process, I did a lot of Maven configuration, e.g. install maven-related Jenkins plugins, set the Maven in the global tools, etc. After all of these work, I can import the maven jobs now. Fantastic!

          John Zhang added a comment - To me, the problem is because of Maven. I tried to import a list of project. All the projects that have nothing to do with Maven were imported successfully. However, all the Maven projects failed. I tried to manually copy a Maven project from the jobs directory in the old Jenkins server to the new server, and manage to build it. During this process, I did a lot of Maven configuration, e.g. install maven-related Jenkins plugins, set the Maven in the global tools, etc. After all of these work, I can import the maven jobs now. Fantastic!

            Unassigned Unassigned
            thomas_st0rm Thomas Storm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: