jenkins.plugins.oslccm
Class CMConsumer

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by 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 Class Summary
static class CMConsumer.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
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)
           
 
Method Summary
 boolean getAutomatic()
           
 java.util.List<java.lang.String> getBugprops()
          to display pre-defined bug properties for automatic bug creation
 java.lang.String getDelegUrl()
           
 boolean getEachBuildFailure()
           
 boolean getFirstBuildFailure()
           
 int getHeight()
           
 boolean getManual()
           
 java.lang.String getOauthUrl()
           
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 java.lang.String getToken()
           
 java.lang.String getTokenSecret()
           
 java.lang.String getUrl()
           
 int getWidth()
           
protected  boolean isFirstFailure(hudson.model.AbstractBuild<?,?> build)
          Determine if this build failure is the first failure in a series of build failures
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void sendReport(java.lang.String message)
           
 void setBugprops(java.util.List<java.lang.String> newprops)
           
protected  boolean shouldSendBugReport(hudson.model.AbstractBuild<?,?> build)
          Determine if a bug report should be created and sent
 
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
 

Constructor Detail

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)
Method Detail

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.