Class AzureStorageBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- com.microsoftopentechnologies.windowsazurestorage.AzureStorageBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class AzureStorageBuilder extends Builder implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AzureStorageBuilder.AzureStorageBuilderDesc
-
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 Modifier and Type Field Description static String
DOWNLOAD_TYPE_CONTAINER
static String
DOWNLOAD_TYPE_FILE_SHARE
static String
DOWNLOAD_TYPE_PROJECT
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description AzureStorageBuilder(String storageCredentialId, String downloadType)
-
Method Summary
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, 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, getProjectActions, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Field Detail
-
DOWNLOAD_TYPE_CONTAINER
public static final String DOWNLOAD_TYPE_CONTAINER
- See Also:
- Constant Field Values
-
DOWNLOAD_TYPE_PROJECT
public static final String DOWNLOAD_TYPE_PROJECT
- See Also:
- Constant Field Values
-
DOWNLOAD_TYPE_FILE_SHARE
public static final String DOWNLOAD_TYPE_FILE_SHARE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setIncludeFilesPattern
@DataBoundSetter public void setIncludeFilesPattern(String includeFilesPattern)
-
setExcludeFilesPattern
@DataBoundSetter public void setExcludeFilesPattern(String excludeFilesPattern)
-
setDownloadDirLoc
@DataBoundSetter public void setDownloadDirLoc(String downloadDirLoc)
-
setFlattenDirectories
@DataBoundSetter public void setFlattenDirectories(boolean flattenDirectories)
-
setIncludeArchiveZips
@DataBoundSetter public void setIncludeArchiveZips(boolean includeArchiveZips)
-
setContainerName
@DataBoundSetter public void setContainerName(String containerName)
-
setFileShare
@DataBoundSetter public void setFileShare(String fileShare)
-
setBuildSelector
@DataBoundSetter public void setBuildSelector(hudson.plugins.copyartifact.BuildSelector buildSelector)
-
setProjectName
@DataBoundSetter public void setProjectName(String projectName)
-
isDeleteFromAzureAfterDownload
public boolean isDeleteFromAzureAfterDownload()
-
setDeleteFromAzureAfterDownload
@DataBoundSetter public void setDeleteFromAzureAfterDownload(boolean deleteFromAzureAfterDownload)
-
getBuildSelector
public hudson.plugins.copyartifact.BuildSelector getBuildSelector()
-
isVerbose
public boolean isVerbose()
-
setVerbose
@DataBoundSetter public void setVerbose(boolean verbose)
-
getStorageAccName
@Deprecated public String getStorageAccName()
Deprecated.
-
getDownloadType
public String getDownloadType()
-
getContainerName
public String getContainerName()
-
getProjectName
public String getProjectName()
-
getIncludeFilesPattern
public String getIncludeFilesPattern()
-
getExcludeFilesPattern
public String getExcludeFilesPattern()
-
getDownloadDirLoc
public String getDownloadDirLoc()
-
isIncludeArchiveZips
public boolean isIncludeArchiveZips()
-
isFlattenDirectories
public boolean isFlattenDirectories()
-
getFileShare
public String getFileShare()
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Overrides:
getRequiredMonitorService
in classBuilder
-
getStorageCredentialId
public String getStorageCredentialId()
-
getStorageAccountCredential
public AzureStorageAccount.StorageAccountCredential getStorageAccountCredential(Item owner)
-
perform
public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Parameters:
run
- environment of buildworkspace
- filepathlauncher
- env var for remote buildslistener
- logging- Throws:
IOException
-
getDescriptor
public AzureStorageBuilder.AzureStorageBuilderDesc getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
-