public class QyWechatNotification extends Publisher implements SimpleBuildStep
Publisher.DescriptorExtensionListImpl
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
Modifier and Type | Field and Description |
---|---|
static DescriptorImpl |
DESCRIPTOR |
BUILDERS, PUBLISHERS
Constructor and Description |
---|
QyWechatNotification() |
Modifier and Type | Method and Description |
---|---|
NotificationConfig |
getConfig(EnvVars envVars)
读取配置,将当前Job与全局配置整合
|
String |
getMentionedId() |
String |
getMentionedMobile() |
String |
getMoreInfo() |
BuildStepMonitor |
getRequiredMonitorService() |
String |
getWebhookUrl() |
boolean |
isFailNotify() |
boolean |
isOnlyFailSendQyWechatNotify() |
void |
perform(Run<?,?> run,
FilePath workspace,
Launcher launcher,
TaskListener listener)
构建结束
|
boolean |
prebuild(AbstractBuild<?,?> build,
BuildListener listener)
开始执行构建
|
void |
setFailNotify(boolean failNotify) |
void |
setMentionedId(String mentionedId) |
void |
setMentionedMobile(String mentionedMobile) |
void |
setMoreInfo(String moreInfo) |
void |
setOnlyFailSendQyWechatNotify(boolean onlyFailSendQyWechatNotify) |
void |
setWebhookUrl(String webhookUrl)
下面为GetSet方法,当前Job保存时进行绑定
|
all, getDescriptor, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform, requiresWorkspace
getProjectAction, getProjectActions, perform
@Extension public static final DescriptorImpl DESCRIPTOR
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
prebuild
in interface BuildStep
prebuild
in class BuildStepCompatibilityLayer
build
- listener
- public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
perform
in interface SimpleBuildStep
run
- workspace
- launcher
- listener
- InterruptedException
IOException
public BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface BuildStep
public NotificationConfig getConfig(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)
@DataBoundSetter public void setOnlyFailSendQyWechatNotify(boolean onlyFailSendQyWechatNotify)
@DataBoundSetter public void setMoreInfo(String moreInfo)
public String getWebhookUrl()
public String getMentionedId()
public String getMentionedMobile()
public boolean isFailNotify()
public boolean isOnlyFailSendQyWechatNotify()
public String getMoreInfo()
Copyright © 2016–2023. All rights reserved.