jenkins.plugins.oslccm
Class CMConsumer
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
jenkins.plugins.oslccm.CMConsumer
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class CMConsumer
- extends hudson.tasks.Notifier
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 |
Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
Constructor Summary |
CMConsumer(java.lang.String token,
java.lang.String tokenSecret)
|
CMConsumer(java.lang.String token,
java.lang.String tokenSecret,
boolean manual,
boolean automatic,
java.lang.String url,
java.lang.String delegUrl,
java.lang.String oauthUrl,
java.lang.String width,
java.lang.String height,
boolean eachBuildFailure,
boolean firstBuildFailure,
java.util.List<java.lang.String> newprops)
|
Methods inherited from class hudson.tasks.Notifier |
getDescriptor |
Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, needsToRunAfterFinalized, prebuild |
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
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 |
getProjectActions, prebuild |
CMConsumer
public CMConsumer(java.lang.String token,
java.lang.String tokenSecret,
boolean manual,
boolean automatic,
java.lang.String url,
java.lang.String delegUrl,
java.lang.String oauthUrl,
java.lang.String width,
java.lang.String height,
boolean eachBuildFailure,
boolean firstBuildFailure,
java.util.List<java.lang.String> newprops)
CMConsumer
@DataBoundConstructor
public CMConsumer(java.lang.String token,
java.lang.String tokenSecret)
getProjectAction
public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
- Specified by:
getProjectAction
in interface hudson.tasks.BuildStep
- Overrides:
getProjectAction
in class hudson.tasks.BuildStepCompatibilityLayer
getEachBuildFailure
public boolean getEachBuildFailure()
getFirstBuildFailure
public boolean getFirstBuildFailure()
getToken
public java.lang.String getToken()
getTokenSecret
public java.lang.String getTokenSecret()
getManual
public boolean getManual()
getAutomatic
public boolean getAutomatic()
getUrl
public java.lang.String getUrl()
getDelegUrl
public java.lang.String getDelegUrl()
getOauthUrl
public java.lang.String getOauthUrl()
getWidth
public int getWidth()
getHeight
public int getHeight()
getBugprops
public java.util.List<java.lang.String> getBugprops()
- to display pre-defined bug properties for automatic bug creation
setBugprops
public void setBugprops(java.util.List<java.lang.String> newprops)
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
- Specified by:
perform
in interface hudson.tasks.BuildStep
- Overrides:
perform
in class hudson.tasks.BuildStepCompatibilityLayer
sendReport
public void sendReport(java.lang.String message)
throws java.lang.Exception
- Throws:
java.lang.Exception
isFirstFailure
protected boolean isFirstFailure(hudson.model.AbstractBuild<?,?> build)
- Determine if this build failure is the first failure in a series of
build failures
- Parameters:
build
- the Build object
- Returns:
- true if this build is the first
shouldSendBugReport
protected boolean shouldSendBugReport(hudson.model.AbstractBuild<?,?> build)
- Determine if a bug report should be created and sent
- Parameters:
build
- the Build object
- Returns:
- true if we should report this build failure
Copyright © 2004-2011. All Rights Reserved.