<?xml version='1.1' encoding='UTF-8'?>
<flow-definition plugin="workfl...@2.33">
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<com.sonyericsson.rebuild.RebuildSettings plugin="reb...@1.31">
<autoRebuild>false</autoRebuild>
<rebuildDisabled>false</rebuildDisabled>
</com.sonyericsson.rebuild.RebuildSettings>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workfl...@2.70">
<script>node {
agent any
stages {
stage('build user') {
steps {
wrap([$class: 'BuildUser']) {
//echo "${BUILD_USER}"
def user = env.BUILD_USER_ID
}
}
}
}
}</script>
<sandbox>true</sandbox>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition><?xml version='1.1' encoding='UTF-8'?>
<flow-definition plugin="workfl...@2.39">
<description></description>
<keepDependencies>false</keepDependencies>
<properties>
<com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin="build-failu...@1.25.1">
<doNotScan>false</doNotScan>
</com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workfl...@2.80">
<script>node {
agent any
stages {
stage('build user') {
steps {
wrap([$class: 'BuildUser']) {
//echo "${BUILD_USER}"
def user = env.BUILD_USER_ID
}
}
}
}
}</script>
<sandbox>true</sandbox>
</definition>
<triggers/>
<disabled>false</disabled>
</flow-definition>--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d43e2995-ca92-42d1-9859-d86739f445aa%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGQc6Pn0Xm6cuer%3DH-1gp91H4U-M9eDjt_wCCvUQuRzTw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJtox0nHt3v%3DcOuS2VWxYJ%2B2%2B_bCF9pYP0kRdoNjkyauzBh%3D6g%40mail.gmail.com.
<com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin="build-failure-anal...@1.25.1">
<doNotScan>false</doNotScan>
</com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workfl...@2.80">
<script>node {
agent any
stages {
stage('build user') {
steps {
wrap([$class: 'BuildUser']) {
//echo "${BUILD_USER}"
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 jenkins...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGCCtzLsM55R4kZGEV4S1RWSqbe5TQ7z_4SPzd0RbAJ%2Bw%40mail.gmail.com.
@Mark when I click the "manage" button next to the error for a project named "Free_hand", I get the below message:Manage Old DataWhen there are changes in how data is stored on disk, Jenkins uses the following strategy: data is migrated to the new structure when it is loaded, but items/records are not resaved in the new format. This allows for downgrading Jenkins if necessary. However, it can also leave data on disk in the old format indefinitely. The table below lists items/records containing such data, and the Jenkins version(s) where the data structure was changed.Sometimes errors occur while reading data (if a plugin adds some data and that plugin is later disabled, if migration code is not written for structure changes, or if Jenkins is downgraded after it has already written data not readable by the older version). These errors are logged, but the unreadable data is then skipped over, allowing Jenkins to start up and function properly.Type Name VersionNo old data was found.Unreadable DataIt is ok to leave unreadable data in these items/records, as Jenkins will simply ignore it. To avoid the log messages at Jenkins startup you can permanently delete the unreadable data by resaving these items/records using the button below the list.
<com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin="build-failu...@1.25.1">
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b54ffdfb-ef9c-44dc-8b38-6a8fe04f5aff%40googlegroups.com.
@Mark I guess you are pulling the same project in different versions of Jenkins from github and they work fine in all the versions. I agree and understand that they should and is actually working fine.
My problem is a little different. Do the below.Consider we have1. Jenkins version "2.224" with Jenkins home directory as /app/Jenkins/old_home2. Jenkins version "2.234" with Jenkins home directory as /app/Jenkins/new_homeCreate a DSL job "Free_hand" in 2.224 with Execute Shell that prints "hello" [ Note: no plugin dependencies ]Now, copy the "Free_hand" folder from inside the old version Jenkins job -> "/app/Jenkins/old_home/jobs/Free_hand" and paste it in the Jenkins_Home/jobs -> "/app/Jenkins/new_home/jobs/Free_hand" folder of newer Jenkins_Home 2.234You will not see the "Free_hand" project in the new version of Jenkins even after the copy.
Restart the newer version of Jenkins. You will now see the Free_hand project visible along with the error message in the notification that I'm reporting.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAOy8S%3D-Hm88GFUH_HFUSiRBP30OaN%2B0CtbYyEQqKZsUjmOb96g%40mail.gmail.com.