public class DingTalkPipeline extends Builder implements SimpleBuildStep
* 不要使用 @Data 注解,spotbugs 会报错 *
* Redundant nullcheck of this$title, which is known to be non-null in * io.jenkins.plugins.model.MessageModel.equals(Object)
Modifier and Type | Class and Description |
---|---|
static class |
DingTalkPipeline.DescriptorImpl |
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and Description |
---|
DingTalkPipeline(String robot) |
Modifier and Type | Method and Description |
---|---|
String |
getBtnLayout()
获取按钮排列方向
|
String |
isHideAvatar() |
void |
perform(Run<?,?> run,
FilePath workspace,
EnvVars envVars,
Launcher launcher,
TaskListener listener) |
void |
setAt(List<String> at) |
void |
setAtAll(boolean atAll) |
void |
setBtnLayout(BtnLayoutEnum btnLayout) |
void |
setBtns(List<ButtonModel> btns) |
void |
setHideAvatar(boolean hideAvatar) |
void |
setMessageUrl(String messageUrl) |
void |
setPicUrl(String picUrl) |
void |
setSingleTitle(String singleTitle) |
void |
setSingleUrl(String singleUrl) |
void |
setText(List<String> text) |
void |
setTitle(String title) |
void |
setType(MsgTypeEnum type) |
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform, requiresWorkspace
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
@DataBoundConstructor public DingTalkPipeline(String robot)
@DataBoundSetter public void setType(MsgTypeEnum type)
@DataBoundSetter public void setAtAll(boolean atAll)
@DataBoundSetter public void setTitle(String title)
@DataBoundSetter public void setMessageUrl(String messageUrl)
@DataBoundSetter public void setPicUrl(String picUrl)
@DataBoundSetter public void setSingleTitle(String singleTitle)
@DataBoundSetter public void setSingleUrl(String singleUrl)
@DataBoundSetter public void setBtns(List<ButtonModel> btns)
@DataBoundSetter public void setBtnLayout(BtnLayoutEnum btnLayout)
@DataBoundSetter public void setHideAvatar(boolean hideAvatar)
public String getBtnLayout()
public String isHideAvatar()
public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull EnvVars envVars, @NonNull Launcher launcher, @NonNull TaskListener listener)
perform
in interface SimpleBuildStep
Copyright © 2016–2022. All rights reserved.