@Extension public static final class Mailer.DescriptorImpl extends BuildStepDescriptor<Publisher>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl() |
filteraddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@NonNull public Permission getRequiredGlobalConfigPagePermission()
getRequiredGlobalConfigPagePermission in class Descriptor<Publisher>public static Permission getJenkinsManageOrAdmin()
public String getDisplayName()
getDisplayName in class Descriptor<Publisher>public String getDefaultSuffix()
public String getReplyToAddress()
@DataBoundSetter public void setReplyToAddress(String address)
public javax.mail.Session createSession()
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws Descriptor.FormException
configure in class Descriptor<Publisher>Descriptor.FormExceptionpublic String getSmtpHost()
@Deprecated public String getSmtpServer()
@Deprecated public String getAdminAddress()
JenkinsLocationConfiguration instead@Deprecated public String getUrl()
JenkinsLocationConfiguration instead@Deprecated public String getSmtpAuthUserName()
authentication@Deprecated public String getSmtpAuthPassword()
authenticationpublic Secret getSmtpAuthPasswordSecret()
public boolean getUseSsl()
public boolean getUseTls()
public String getSmtpPort()
public String getCharset()
@DataBoundSetter public void setDefaultSuffix(String defaultSuffix)
@Deprecated public void setHudsonUrl(String hudsonUrl)
JenkinsLocationConfiguration insteadhudsonUrl - Jenkins base URL to set@Deprecated public void setAdminAddress(String adminAddress)
JenkinsLocationConfiguration insteadadminAddress - Jenkins administrator mail address to set@DataBoundSetter public void setSmtpHost(String smtpHost)
@DataBoundSetter public void setUseSsl(boolean useSsl)
@DataBoundSetter public void setUseTls(boolean useTls)
@DataBoundSetter public void setSmtpPort(String smtpPort)
@DataBoundSetter public void setCharset(String charset)
@DataBoundSetter public void setAuthentication(@CheckForNull SMTPAuthentication authentication)
@CheckForNull public SMTPAuthentication getAuthentication()
@Deprecated public void setSmtpAuth(String userName, String password)
authenticationpublic Publisher newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
newInstance in class Descriptor<Publisher>Descriptor.FormExceptionpublic FormValidation doAddressCheck(@QueryParameter String value)
public FormValidation doCheckSmtpServer(@QueryParameter String value)
public FormValidation doCheckDefaultSuffix(@QueryParameter String value)
public FormValidation doSendTestMail(@QueryParameter String smtpHost, @QueryParameter String adminAddress, @QueryParameter boolean authentication, @QueryParameter String username, @QueryParameter Secret password, @QueryParameter boolean useSsl, @QueryParameter boolean useTls, @QueryParameter String smtpPort, @QueryParameter String charset, @QueryParameter String sendTestMailTo) throws IOException
smtpHost - name of the SMTP server to use for mail sendingadminAddress - Jenkins administrator mail addressauthentication - if set to true SMTP is used without authentication (username and password)username - plaintext username for SMTP authenticationpassword - secret password for SMTP authenticationuseSsl - if set to true SSL is useduseTls - if set to true TLS is usedsmtpPort - port to use for SMTP transfercharset - charset of the underlying MIME-mail messagesendTestMailTo - mail address to send test mail toIOException - in case the active jenkins instance cannot be retrievedpublic boolean isApplicable(Class<? extends AbstractProject> jobType)
isApplicable in class BuildStepDescriptor<Publisher>Copyright © 2016–2021. All rights reserved.