Class BlobStorePublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
jenkins.plugins.jclouds.blobstore.BlobStorePublisher
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
Publishes artifacts to Blobstore configured using JClouds
- Author:
- Vijay Kiran
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionBlobStorePublisher
(String profileName, List<BlobStoreEntry> entries) Create a new Blobstore publisher for the configured profile identified by profileName -
Method Summary
Modifier and TypeMethodDescriptionGet list of entries to be uploaded.getName()
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Perform the build step of uploading the configured file entries to the blobstore.void
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
-
Field Details
-
DESCRIPTOR
-
-
Constructor Details
-
BlobStorePublisher
Create a new Blobstore publisher for the configured profile identified by profileName- Parameters:
profileName
- The name of the configured profile name.entries
- The list of entries to be handled.
-
-
Method Details
-
getEntries
Get list of entries to be uploaded.- Returns:
- The list of entries to be uploaded.
-
getProfile
- Returns:
- - current profile for a profileName or returns the first one if the profileName isn't configured
-
getName
-
setName
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOExceptionPerform 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 interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Parameters:
build
- - reference to current build.launcher
- -Launcher
listener
- -BuildListener
- Returns:
- Always returns
true
to indicate that build can continue, so we won't block other steps. - Throws:
InterruptedException
- if the upload gets interrupted.IOException
- if an IO error occurs.
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Returns:
- BuildStepMonitor.STEP
- See Also:
-