io.blitz.jenkins
Class BlitzIOPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by io.blitz.jenkins.BlitzIOPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class BlitzIOPublisher
extends hudson.tasks.Recorder

When the user configures the project and enables this publisher, Descriptor.newInstance(StaplerRequest) is invoked and a new BlitzIOPublisher is created. The created instance is persisted to the project configuration XML by using XStream, so this allows you to use instance fields (like rush) to remember the configuration.

When a build is performed, the perform(AbstractBuild, Launcher, BuildListener) method will be invoked.

Author:
Jeff Li

Nested Class Summary
static class BlitzIOPublisher.DescriptorImpl
          Descriptor for BlitzIOPublisher.
 
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
BlitzIOPublisher(Boolean runSprint, String sprint, String responseTime, Boolean runRush, String rush, String errorRate)
           
 
Method Summary
 BlitzIOPublisher.DescriptorImpl getDescriptor()
           
 String getErrorRate()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 String getResponseTime()
           
 boolean getRunRush()
           
 boolean getRunSprint()
          We'll use this from the config.jelly.
 String getRush()
           
 String getSprint()
           
 boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
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

BlitzIOPublisher

@DataBoundConstructor
public BlitzIOPublisher(Boolean runSprint,
                                             String sprint,
                                             String responseTime,
                                             Boolean runRush,
                                             String rush,
                                             String errorRate)
Method Detail

getRunSprint

public boolean getRunSprint()
We'll use this from the config.jelly.


getRunRush

public boolean getRunRush()

getSprint

public String getSprint()

getResponseTime

public String getResponseTime()

getRush

public String getRush()

getErrorRate

public String getErrorRate()

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

getDescriptor

public BlitzIOPublisher.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Overrides:
getDescriptor in class hudson.tasks.Recorder


Copyright © 2004-2012 Spirent Communications. All Rights Reserved.