Class WAStoragePublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class WAStoragePublisher extends Recorder implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WAStoragePublisher.WAStorageDescriptor
-
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
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description WAStoragePublisher(String storageCredentialId, String filesPath, String storageType)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UploadType
getArtifactUploadType()
AzureBlobProperties
getBlobProperties()
Azure storage blob properties.String
getContainerName()
Azure storage container name.WAStoragePublisher.WAStorageDescriptor
getDescriptor()
String
getExcludeFilesPath()
Files to exclude from archival.String
getFileShareName()
String
getFilesPath()
Files path.List<AzureBlobMetadataPair>
getMetadata()
Collection<? extends Action>
getProjectActions(AbstractProject<?,?> project)
String
getRemovePrefixPath()
BuildStepMonitor
getRequiredMonitorService()
String
getStorageAccName()
Deprecated.String
getStorageAccName(Item owner)
Azure Storage Account Name.StorageAccountInfo
getStorageAccount()
Deprecated.AzureStorageAccount.StorageAccountCredential
getStorageAccountCredentials(Item owner)
String
getStorageCredentialId()
String
getStorageType()
String
getVirtualPath()
File Path prefix.boolean
isAllowAnonymousAccess()
Allowing anonymous access for links generated by jenkins.boolean
isCleanUpContainerOrShare()
Azure storage container cleanup option.boolean
isCleanUpVirtualPath()
Azure storage virtual path cleanup option.boolean
isDoNotFailIfArchivingReturnsNothing()
If true, build will not be changed to UNSTABLE if archiving returns nothing.boolean
isDoNotUploadIndividualFiles()
If true, artifacts will not be uploaded as individual files.boolean
isDoNotWaitForPreviousBuild()
boolean
isOnlyUploadModifiedArtifacts()
boolean
isPubAccessible()
Azure storage container access.boolean
isUploadArtifactsOnlyIfSuccessful()
If true, uploads artifacts only if the build passed.boolean
isUploadZips()
If true, artifacts will also be uploaded as a zip rollup.boolean
isVerbose()
void
perform(Run<?,?> run, FilePath ws, EnvVars env, Launcher launcher, TaskListener listener)
void
setAllowAnonymousAccess(boolean allowAnonymousAccess)
void
setBlobProperties(AzureBlobProperties blobProperties)
void
setCleanUpContainerOrShare(boolean cleanUpContainerOrShare)
void
setCleanUpVirtualPath(boolean cleanUpVirtualPath)
void
setContainerName(String containerName)
void
setDoNotFailIfArchivingReturnsNothing(boolean doNotFailIfArchivingReturnsNothing)
void
setDoNotUploadIndividualFiles(boolean doNotUploadIndividualFiles)
void
setDoNotWaitForPreviousBuild(boolean doNotWaitForPreviousBuild)
void
setExcludeFilesPath(String excludeFilesPath)
void
setFileShareName(String fileShareName)
void
setMetadata(List<AzureBlobMetadataPair> metadata)
void
setOnlyUploadModifiedArtifacts(boolean onlyUploadModifiedArtifacts)
void
setPubAccessible(boolean pubAccessible)
void
setRemovePrefixPath(String removePrefixPath)
void
setUploadArtifactsOnlyIfSuccessful(boolean uploadArtifactsOnlyIfSuccessful)
void
setUploadZips(boolean uploadZips)
void
setVerbose(boolean verbose)
void
setVirtualPath(String virtualPath)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, 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, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
setContainerName
@DataBoundSetter public void setContainerName(String containerName)
-
setFileShareName
@DataBoundSetter public void setFileShareName(String fileShareName)
-
setBlobProperties
@DataBoundSetter public void setBlobProperties(AzureBlobProperties blobProperties)
-
setPubAccessible
@DataBoundSetter public void setPubAccessible(boolean pubAccessible)
-
setCleanUpContainerOrShare
@DataBoundSetter public void setCleanUpContainerOrShare(boolean cleanUpContainerOrShare)
-
setCleanUpVirtualPath
@DataBoundSetter public void setCleanUpVirtualPath(boolean cleanUpVirtualPath)
-
setAllowAnonymousAccess
@DataBoundSetter public void setAllowAnonymousAccess(boolean allowAnonymousAccess)
-
setUploadArtifactsOnlyIfSuccessful
@DataBoundSetter public void setUploadArtifactsOnlyIfSuccessful(boolean uploadArtifactsOnlyIfSuccessful)
-
setDoNotFailIfArchivingReturnsNothing
@DataBoundSetter public void setDoNotFailIfArchivingReturnsNothing(boolean doNotFailIfArchivingReturnsNothing)
-
setUploadZips
@DataBoundSetter public void setUploadZips(boolean uploadZips)
-
setDoNotUploadIndividualFiles
@DataBoundSetter public void setDoNotUploadIndividualFiles(boolean doNotUploadIndividualFiles)
-
setExcludeFilesPath
@DataBoundSetter public void setExcludeFilesPath(String excludeFilesPath)
-
setVirtualPath
@DataBoundSetter public void setVirtualPath(String virtualPath)
-
getRemovePrefixPath
public String getRemovePrefixPath()
-
setRemovePrefixPath
@DataBoundSetter public void setRemovePrefixPath(String removePrefixPath)
-
setDoNotWaitForPreviousBuild
@DataBoundSetter public void setDoNotWaitForPreviousBuild(boolean doNotWaitForPreviousBuild)
-
setOnlyUploadModifiedArtifacts
@DataBoundSetter public void setOnlyUploadModifiedArtifacts(boolean onlyUploadModifiedArtifacts)
-
setMetadata
@DataBoundSetter public void setMetadata(List<AzureBlobMetadataPair> metadata)
-
isVerbose
public boolean isVerbose()
-
setVerbose
@DataBoundSetter public void setVerbose(boolean verbose)
-
getFilesPath
public String getFilesPath()
Files path. Ant glob syntax.
-
getExcludeFilesPath
public String getExcludeFilesPath()
Files to exclude from archival. Ant glob syntax
-
getContainerName
public String getContainerName()
Azure storage container name.
-
getFileShareName
public String getFileShareName()
-
getStorageType
public String getStorageType()
-
getBlobProperties
public AzureBlobProperties getBlobProperties()
Azure storage blob properties.
-
getMetadata
public List<AzureBlobMetadataPair> getMetadata()
-
isPubAccessible
public boolean isPubAccessible()
Azure storage container access.
-
isCleanUpContainerOrShare
public boolean isCleanUpContainerOrShare()
Azure storage container cleanup option.
-
isCleanUpVirtualPath
public boolean isCleanUpVirtualPath()
Azure storage virtual path cleanup option.
-
isAllowAnonymousAccess
public boolean isAllowAnonymousAccess()
Allowing anonymous access for links generated by jenkins.
-
isDoNotFailIfArchivingReturnsNothing
public boolean isDoNotFailIfArchivingReturnsNothing()
If true, build will not be changed to UNSTABLE if archiving returns nothing.
-
isUploadArtifactsOnlyIfSuccessful
public boolean isUploadArtifactsOnlyIfSuccessful()
If true, uploads artifacts only if the build passed.
-
isUploadZips
public boolean isUploadZips()
If true, artifacts will also be uploaded as a zip rollup.
-
isDoNotUploadIndividualFiles
public boolean isDoNotUploadIndividualFiles()
If true, artifacts will not be uploaded as individual files.
-
isDoNotWaitForPreviousBuild
public boolean isDoNotWaitForPreviousBuild()
-
isOnlyUploadModifiedArtifacts
public boolean isOnlyUploadModifiedArtifacts()
-
getStorageCredentialId
public String getStorageCredentialId()
-
getArtifactUploadType
public UploadType getArtifactUploadType()
-
getStorageAccName
@Deprecated public String getStorageAccName()
Deprecated.
-
getStorageAccountCredentials
public AzureStorageAccount.StorageAccountCredential getStorageAccountCredentials(Item owner)
-
getVirtualPath
public String getVirtualPath()
File Path prefix.
-
getDescriptor
public WAStoragePublisher.WAStorageDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
getProjectActions
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
-
getStorageAccount
@Deprecated public StorageAccountInfo getStorageAccount()
Deprecated.Returns storage account object based on the name selected in job configuration.- Returns:
- StorageAccount
-
perform
public void perform(@NonNull Run<?,?> run, @NonNull FilePath ws, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
-