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
  • Constructor Details

    • WAStoragePublisher

      @DataBoundConstructor public WAStoragePublisher(String storageCredentialId, String filesPath, String storageType)
  • Method Details

    • 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.
    • getStorageAccName

      public String getStorageAccName(Item owner)
      Azure Storage Account Name.
    • getStorageAccountCredentials

      public AzureStorageAccount.StorageAccountCredential getStorageAccountCredentials(Item owner)
    • getVirtualPath

      public String getVirtualPath()
      File Path prefix.
    • getDescriptor

      Specified by:
      getDescriptor in interface Describable<Publisher>
      Overrides:
      getDescriptor in class Recorder
    • getProjectActions

      public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
      Specified by:
      getProjectActions in interface BuildStep
      Overrides:
      getProjectActions in class BuildStepCompatibilityLayer
    • 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 interface SimpleBuildStep
      Throws:
      InterruptedException
      IOException
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
      Specified by:
      getRequiredMonitorService in interface BuildStep