Hi all,
I've got an init.d/ groovy script to configure the mailer task:
import jenkins.model.*
def jenkinsInst = Jenkins.getInstance()
def mailerDesc = jenkinsInst.getDescriptor("hudson.tasks.Mailer");
mailerDesc.setUseSsl(false)
mailerDesc.setCharset("UTF-8")
mailerDesc.save()
When the next time Jenkins restarts after this script i get an warning "You have data stored in an older format and/or unreadable data."
type:
jenkins.model.JenkinsLocationConfiguration
name:
JenkinsLocationConfiguration
error:
MissingFieldException: No field 'defaultSuffix' found in class 'jenkins.model.JenkinsLocationConfiguration', MissingFieldException: No field 'replyToAddress' found in class 'jenkins.model.JenkinsLocationConfiguration', MissingFieldException: No field 'smtpHost' found in class 'jenkins.model.JenkinsLocationConfiguration'
What can be wrong?
Regards,
Jeroen