public class BlobStorePublisher extends Recorder implements Describable<Publisher>
Modifier and Type | Class and Description |
---|---|
static class |
BlobStorePublisher.DescriptorImpl |
Publisher.DescriptorExtensionListImpl
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
Modifier and Type | Field and Description |
---|---|
static BlobStorePublisher.DescriptorImpl |
DESCRIPTOR |
BUILDERS, PUBLISHERS
Constructor and Description |
---|
BlobStorePublisher(String profileName,
List<BlobStoreEntry> entries)
Create a new Blobstore publisher for the configured profile identified by profileName
|
Modifier and Type | Method and Description |
---|---|
List<BlobStoreEntry> |
getEntries()
Get list of entries to be uploaded.
|
String |
getName() |
BlobStoreProfile |
getProfile() |
BuildStepMonitor |
getRequiredMonitorService() |
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener)
Perform the build step of uploading the configured file entries to the blobstore.
|
void |
setName(String profileName) |
getDescriptor
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescriptor
@Extension public static final BlobStorePublisher.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public BlobStorePublisher(String profileName, List<BlobStoreEntry> entries)
profileName
- The name of the configured profile name.entries
- The list of entries to be handled.public List<BlobStoreEntry> getEntries()
public BlobStoreProfile getProfile()
public String getName()
public void setName(String profileName)
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
perform
in interface BuildStep
perform
in class BuildStepCompatibilityLayer
build
- - reference to current build.launcher
- - Launcher
listener
- - BuildListener
true
to indicate that build can continue, so we won't block other steps.InterruptedException
- if the upload gets interrupted.IOException
- if an IO error occurs.public BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface BuildStep
BuildStepMonitor.STEP
Copyright © 2016–2021. All rights reserved.