com.ikokoon.serenity.hudson
Class SerenityPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by com.ikokoon.serenity.hudson.SerenityPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class SerenityPublisher
extends hudson.tasks.Recorder

This class runs at the end of the build, called by Hudson. The purpose is to copy the database file from the output directory for the reports directory where the build action can present the data to the front end. As well as this the source that was found for the project is copied to the source directory where the front end can access it.

Since:
12.07.09
Version:
01.00
Author:
Michael Couck

Nested Class Summary
static class SerenityPublisher.DescriptorImpl
          Descriptor for SerenityPublisher.
 
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
static SerenityPublisher.DescriptorImpl DESCRIPTOR
          The description for Hudson.
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
SerenityPublisher()
           
 
Method Summary
 hudson.model.Action getProjectAction(hudson.model.AbstractProject abstractProject)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener buildListener)
          
 
Methods inherited from class hudson.tasks.Recorder
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
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

DESCRIPTOR

@Extension
public static final SerenityPublisher.DescriptorImpl DESCRIPTOR
The description for Hudson.

Constructor Detail

SerenityPublisher

@DataBoundConstructor
public SerenityPublisher()
Method Detail

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener buildListener)
                throws java.lang.InterruptedException,
                       java.io.IOException

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException

getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject abstractProject)
Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()


Copyright © 2010. All Rights Reserved.