com.slide.hudson.plugins
Class CIFSPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by com.slide.hudson.plugins.CIFSPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class CIFSPublisher
extends hudson.tasks.Notifier

This class implements the CIFS publisher process by using the CIFSShare.

Author:
Alex Earl, Christian Knuechel

Nested Class Summary
static class CIFSPublisher.DescriptorImpl
           This class holds the metadata for the FTPPublisher.
 
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 CIFSPublisher.DescriptorImpl DESCRIPTOR
          Hold an instance of the Descriptor implementation of this publisher.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
CIFSPublisher()
           
CIFSPublisher(java.lang.String shareName)
          The constructor which take a configured CIFS share name to publishing the artifacts.
 
Method Summary
 java.util.List<Entry> getEntries()
          The getter for the entries field.
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 CIFSShare getShare()
          This method returns the configured CIFSShare object which match the siteName of the CIFSPublicher instance.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          
 void setWinsServer(java.lang.String winsServer)
           
 
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
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
 

Field Detail

DESCRIPTOR

@Extension
public static final CIFSPublisher.DescriptorImpl DESCRIPTOR
Hold an instance of the Descriptor implementation of this publisher.

Constructor Detail

CIFSPublisher

public CIFSPublisher()

CIFSPublisher

public CIFSPublisher(java.lang.String shareName)
The constructor which take a configured CIFS share name to publishing the artifacts.

Parameters:
shareName - the name of the CIFS share configuration to use
Method Detail

setWinsServer

public void setWinsServer(java.lang.String winsServer)

getEntries

public java.util.List<Entry> getEntries()
The getter for the entries field. (this field is set by the UI part of this plugin see config.jelly file)

Returns:
the value of the entries field

getShare

public CIFSShare getShare()
This method returns the configured CIFSShare object which match the siteName of the CIFSPublicher instance. (see Manage Hudson and System Configuration point CIFS)

Returns:
the matching CIFSShare or null

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

perform

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

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Parameters:
build -
launcher -
listener -
Returns:
true on success, false otherwise
Throws:
java.lang.InterruptedException
java.io.IOException
See Also:
hudson.tasks.BuildStep#perform(hudson.model.Build, hudson.Launcher, hudson.model.BuildListener)


Copyright © 2011. All Rights Reserved.