Seems to be caused by some weird logic in this class if there is no
configuration yet.
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/JenkinsLocationConfiguration.java#L67-L83
So it means you don't have any configuration set for
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)