public abstract class CardProvider extends hudson.model.AbstractDescribableImpl<CardProvider> implements hudson.ExtensionPoint
Constructor and Description |
---|
CardProvider() |
Modifier and Type | Method and Description |
---|---|
protected Attribute |
attribute(String label,
String value,
Value.Style style,
String url)
A simple factory method to easily create attribute for the Card.
|
abstract Card |
getCard(hudson.model.Run<?,?> run,
hudson.model.TaskListener taskListener,
Icon icon,
String message)
Returns a card corresponding to the build notification.
|
Card |
getCard(hudson.model.Run<?,?> run,
hudson.model.TaskListener taskListener,
String message)
Deprecated.
|
CardProviderDescriptor |
getDescriptor() |
public CardProviderDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<CardProvider>
getDescriptor
in class hudson.model.AbstractDescribableImpl<CardProvider>
@Deprecated public Card getCard(hudson.model.Run<?,?> run, hudson.model.TaskListener taskListener, String message)
getCard(hudson.model.Run, hudson.model.TaskListener,
jenkins.plugins.hipchat.model.notifications.Icon, java.lang.String)
instead.run
- The build run.taskListener
- The taskListener associated with the current build.message
- The fully resolved notification message.public abstract Card getCard(hudson.model.Run<?,?> run, hudson.model.TaskListener taskListener, Icon icon, String message)
run
- The build run.taskListener
- The taskListener associated with the current build.icon
- The icon to include in the message. May be null.message
- The fully resolved notification message.protected Attribute attribute(String label, String value, Value.Style style, String url)
label
- The label for the data.value
- The data value corresponding to the label.style
- The style that determines the color of the background for the value.url
- Used as the href of a link that will be generated (the link's title will be the 'value') on the card.Copyright © 2016–2018. All rights reserved.