public class QyWechatNotification
extends hudson.tasks.Publisher
implements jenkins.tasks.SimpleBuildStep
| 限定符和类型 | 字段和说明 |
|---|---|
static DescriptorImpl |
DESCRIPTOR |
| 构造器和说明 |
|---|
QyWechatNotification() |
| 限定符和类型 | 方法和说明 |
|---|---|
NotificationConfig |
getConfig(hudson.EnvVars envVars)
读取配置,将当前Job与全局配置整合
|
String |
getMentionedId() |
String |
getMentionedMobile() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getWebhookUrl() |
boolean |
isFailNotify() |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
构建结束
|
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
开始执行构建
|
void |
setFailNotify(boolean failNotify) |
void |
setMentionedId(String mentionedId) |
void |
setMentionedMobile(String mentionedMobile) |
void |
setWebhookUrl(String webhookUrl)
下面为GetSet方法,当前Job保存时进行绑定
|
all, getDescriptor, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform@Extension public static final DescriptorImpl DESCRIPTOR
public boolean prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
prebuild 在接口中 hudson.tasks.BuildStepprebuild 在类中 hudson.tasks.BuildStepCompatibilityLayerbuild - listener - public void perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws InterruptedException,
IOException
perform 在接口中 jenkins.tasks.SimpleBuildSteprun - workspace - launcher - listener - InterruptedExceptionIOExceptionpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService 在接口中 hudson.tasks.BuildSteppublic NotificationConfig getConfig(hudson.EnvVars envVars)
envVars - @DataBoundSetter public void setWebhookUrl(String webhookUrl)
@DataBoundSetter public void setMentionedId(String mentionedId)
@DataBoundSetter public void setMentionedMobile(String mentionedMobile)
@DataBoundSetter public void setFailNotify(boolean failNotify)
public String getWebhookUrl()
public String getMentionedId()
public String getMentionedMobile()
public boolean isFailNotify()
Copyright © 2016–2019. All rights reserved.