jenkins.plugins.jclouds.blobstore
Class BlobStorePublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by jenkins.plugins.jclouds.blobstore.BlobStorePublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class BlobStorePublisher
extends hudson.tasks.Recorder
implements hudson.model.Describable<hudson.tasks.Publisher>

Publishes artifacts to Blobstore configured using JClouds

Author:
Vijay Kiran

Nested Class Summary
static class BlobStorePublisher.DescriptorImpl
          Descriptor
 
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 BlobStorePublisher.DescriptorImpl DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
BlobStorePublisher()
           
BlobStorePublisher(String profileName)
          Create a new Blobstore publisher for the cofigured profile identified by profileName
 
Method Summary
 List<BlobStoreEntry> getEntries()
          Get list of entries to be uploaded.
 String getName()
           
 BlobStoreProfile getProfile()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
protected  void log(PrintStream logger, String message)
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Perform the build step of uploading the configured file entries to the blobstore.
 void setName(String profileName)
           
 
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
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.model.Describable
getDescriptor
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Field Detail

DESCRIPTOR

@Extension
public static final BlobStorePublisher.DescriptorImpl DESCRIPTOR
Constructor Detail

BlobStorePublisher

@DataBoundConstructor
public BlobStorePublisher()

BlobStorePublisher

public BlobStorePublisher(String profileName)
Create a new Blobstore publisher for the cofigured profile identified by profileName

Parameters:
profileName - - the name of the configured profile name
Method Detail

getEntries

public List<BlobStoreEntry> getEntries()
Get list of entries to be uploaded.

Returns:

getProfile

public BlobStoreProfile getProfile()
Returns:
- current profile for a profileName or returns the first one if the profileName isn't configured

getName

public String getName()

setName

public void setName(String profileName)

log

protected void log(PrintStream logger,
                   String message)

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Perform the build step of uploading the configured file entries to the blobstore.

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Parameters:
build - - reference to curerent build.
launcher - - Launcher
listener - - BuildListener
Returns:
Always returns to indicate that build can continue, so we won't block other steps.
Throws:
InterruptedException
IOException

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep
Returns:
BuildStepMonitor.STEP


Copyright © 2004-2012. All Rights Reserved.