jenkins.plugins.jclouds.blobstore
Class BlobStorePublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
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 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 |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
| 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 |
DESCRIPTOR
@Extension
public static final BlobStorePublisher.DescriptorImpl DESCRIPTOR
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
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.
- If the build result is failure, will not do anything except logging the stuff.
- If the blobstore profile isn't configured, or the uploading failed, the build is set to be unstable.
- If the upload is succesful, the build is set to be stable.
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Parameters:
build - - reference to curerent build.launcher - - Launcherlistener - - 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.