Unable to import jobs of Jenkins old version: 2.224 to Jenkins New version: 
2.234

After I copy the job from old to new Jenkins home the Jenkins console UI 
throws this error:

**You have data stored in older format and/or unreadable data.**

Here is the old config.xml of a very simple job:

<?xml version='1.1' encoding='UTF-8'?>
<flow-definition plugin="[email protected]">
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties>
    <com.sonyericsson.rebuild.RebuildSettings plugin="[email protected]">
      <autoRebuild>false</autoRebuild>
      <rebuildDisabled>false</rebuildDisabled>
    </com.sonyericsson.rebuild.RebuildSettings>
  </properties>
  <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" 
plugin="[email protected]">
    <script>node {
    agent any
    stages {
        stage(&apos;build user&apos;) {


            steps {
                     wrap([$class: &apos;BuildUser&apos;]) {
                         //echo &quot;${BUILD_USER}&quot;
                         def user = env.BUILD_USER_ID
            }
        }
    }
}


}</script>
    <sandbox>true</sandbox>
  </definition>
  <triggers/>
  <disabled>false</disabled>
</flow-definition>

Next is the same job created in the newer version of Jenkins:

<?xml version='1.1' encoding='UTF-8'?>
<flow-definition plugin="[email protected]">
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties>
    <com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin=
"[email protected]">
      <doNotScan>false</doNotScan>
    </com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty>
  </properties>
  <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" 
plugin="[email protected]">
    <script>node {
    agent any
    stages {
        stage(&apos;build user&apos;) {


            steps {
                     wrap([$class: &apos;BuildUser&apos;]) {
                         //echo &quot;${BUILD_USER}&quot;
                         def user = env.BUILD_USER_ID
            }
        }
    }
}


}</script>
    <sandbox>true</sandbox>
  </definition>
  <triggers/>
  <disabled>false</disabled>
</flow-definition>

Can someone please suggest how I can flawlessly import the jobs of the old 
Jenkins to the new Jenkins?

I have about 75 complex Jenkins jobs and creating each manually on the new 
version of Jenkins will be trivial and could be error-prone.

Can you please suggest?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d43e2995-ca92-42d1-9859-d86739f445aa%40googlegroups.com.

Reply via email to