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.setSmtpHost("smtp.domain.com")
mailerDesc.setUseSsl(false)
mailerDesc.setDefaultSuffix("@domain.com")
mailerDesc.setReplyToAddress("[email protected]")
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
--
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/cf900a97-cdcf-4bd9-a4be-d4d1098338c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.