|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
com.twilio.jenkins.TwilioNotifier
public class TwilioNotifier
A TwilioNotifier is a Notifier that uses the Rest API of
communications service provider "http://www.twilio.com/ to send
text messages and make calls with the build status of individual builds.
This notifier was inspired in features and design by the Twitter Notifier
plugin.
| Nested Class Summary | |
|---|---|
static class |
TwilioNotifier.DescriptorImpl
|
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
|---|
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Field Summary |
|---|
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
TwilioNotifier(String message,
String toList,
String onlyOnFailureOrRecovery,
String includeUrl,
String smsNotification,
String callNotification,
String userList,
String sendToCulprits,
String culpritMessage)
Databound constructor matching the corresponding Jelly configuration items. |
|
| Method Summary | |
|---|---|
protected static String |
culpritStringFromList(List<Pair<String,String>> phoneToCulprit)
|
hudson.util.FormValidation |
doCheckToList(String value)
Validates the toList. |
Boolean |
getCallNotification()
Getter for callNotification. |
String |
getCulpritMessage()
Getter for the culprit message. |
TwilioNotifier.DescriptorImpl |
getDescriptor()
|
Boolean |
getIncludeUrl()
Returns the include url flag. |
String |
getMessage()
Getter for the message. |
Boolean |
getOnlyOnFailureOrRecovery()
Getter for onlyOnFailureOrRecovery flag. |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
|
Boolean |
getSendToCulprits()
Getter for sendToCulprits flag. |
Boolean |
getSmsNotification()
Getter for smsNotification flag. |
String |
getToList()
Getter for the toList. |
String |
getUserList()
Getter for the message. |
protected boolean |
isFailureOrRecovery(hudson.model.AbstractBuild<?,?> build)
Determine if this build represents a failure or recovery. |
protected static Map<String,Pair<String,String>> |
parseUserList(String users)
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
|
protected boolean |
shouldNotify(hudson.model.AbstractBuild<?,?> build)
Determine if this build results should be tweeted. |
protected static String |
substituteAttributes(String inputString,
Map<String,String> substitutionMap)
|
| Methods inherited from class hudson.tasks.Publisher |
|---|
all, getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
|---|
getProjectAction, getProjectActions, perform, prebuild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
|---|
getProjectAction, getProjectActions, prebuild |
| Constructor Detail |
|---|
@DataBoundConstructor
public TwilioNotifier(String message,
String toList,
String onlyOnFailureOrRecovery,
String includeUrl,
String smsNotification,
String callNotification,
String userList,
String sendToCulprits,
String culpritMessage)
message - the message to sendtoList - the comma separated list of people to send toonlyOnFailureOrRecovery - whether to send notification only on failure or recoveryincludeUrl - whether to include a url to the build statusmsNotification - whether to send text messagecallNotification - whether to call| Method Detail |
|---|
protected static Map<String,Pair<String,String>> parseUserList(String users)
protected static String substituteAttributes(String inputString,
Map<String,String> substitutionMap)
public String getToList()
public hudson.util.FormValidation doCheckToList(@QueryParameter
String value)
value - the toList to validate
FormValidation.ok if valid, FormValidation.error if not validpublic String getMessage()
public String getCulpritMessage()
public Boolean getCallNotification()
public Boolean getSmsNotification()
public Boolean getSendToCulprits()
public Boolean getIncludeUrl()
public Boolean getOnlyOnFailureOrRecovery()
public String getUserList()
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerprotected static String culpritStringFromList(List<Pair<String,String>> phoneToCulprit)
protected boolean isFailureOrRecovery(hudson.model.AbstractBuild<?,?> build)
build - the Build object
protected boolean shouldNotify(hudson.model.AbstractBuild<?,?> build)
build - the Build object
public TwilioNotifier.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Notifierpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||