We've been using the RVM and ANSI color plugins for several months now. 
Suddenly they stopped working after a restart of Jenkins.

We generate new jobs from a config.xml template:
<?xml version='1.0' encoding='UTF-8'?>
<project>
  <actions/>
  <description></description>
  <displayName>DISPLAY_NAME</displayName>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <scm class="hudson.plugins.git.GitSCM" plugin="git@2.5.3">
    <configVersion>2</configVersion>
    <userRemoteConfigs>
      <hudson.plugins.git.UserRemoteConfig>
        <url>https://server/my_repo.git</url>
        <credentialsId>Nice GUUID</credentialsId>
      </hudson.plugins.git.UserRemoteConfig>
    </userRemoteConfigs>
    <branches>
      <hudson.plugins.git.BranchSpec>
        <name>*/master</name>
      </hudson.plugins.git.BranchSpec>
    </branches>
    
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
    <submoduleCfg class="list"/>
    <extensions/>
  </scm>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers>
    <hudson.triggers.TimerTrigger>
      <spec>*/10 5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0,1 * 
* *</spec>
    </hudson.triggers.TimerTrigger>
  </triggers>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Shell>
      <command>./my_script.rb PRODUCT PLATFORM</command>
    </hudson.tasks.Shell>
  </builders>
  <publishers>
    <hudson.tasks.Mailer plugin="mailer@1.17">
      <recipients>t...@example.com</recipients>
      <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
      <sendToIndividuals>false</sendToIndividuals>
    </hudson.tasks.Mailer>
  </publishers>
  <buildWrappers>
    <hudson.plugins.ansicolor.AnsiColorBuildWrapper 
plugin="ansicolor@0.4.2">
      <colorMapName>xterm</colorMapName>
    </hudson.plugins.ansicolor.AnsiColorBuildWrapper>
    <ruby-proxy-object>
      <ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" 
pluginid="rvm">
        <pluginid pluginid="rvm" ruby-class="String">rvm</pluginid>
        <object ruby-class="RvmWrapper" pluginid="rvm">
          <impl pluginid="rvm" ruby-class="String">2.3.0</impl>
        </object>
      </ruby-object>
    </ruby-proxy-object>
  </buildWrappers>
</project>

When I *Reload Configuration from Disk* in *Manage Jenkins* I get a *You 
have data stored in an older format and/or unreadable data.*

In the *Manage Old Data* I see the following *Unreadable Data*:
TypeNameError
hudson.model.FreeStyleProject MyJob NoSuchMethodError: 
org.jruby.RubyClass.getVariableAccessorForWrite(Ljava/lang/String;)Lorg/jruby/RubyClass$VariableAccessor;,
 
MissingFieldException: No field 'impl' found in class 'java.lang.Object', 
InstantiationError: null
In the job configuration the checkmark and value for *Color ANSI Console 
Output *and *Run the build in a RVM-managed environment* are empty and not 
set.

I tried to discard the unreadable data. Then I tick on the two properties 
and set the value to the same as in the config.xml and save. Then the 
config.xml is exactly the same as before I discarded the unreadable data.

When I *Reload Configuration from Disk* in *Manage Jenkins* I get a the *You 
have data stored in an older format and/or unreadable data* again.

How do I get Jenkins to read my configuration correctly again?

I use Jenkins 2.19 via Jenkins.app <https://github.com/stisti/jenkins-app> on 
Mac OS X 10.11.6 with the newest RVM and ANSI color plugins.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a62b4434-a239-44fd-941f-909af66eba06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to