Class StdoutUploadStep
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
com.google.jenkins.plugins.storage.StdoutUploadStep
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,Serializable,SimpleBuildStep
@RequiresDomain(StorageScopeRequirement.class)
public class StdoutUploadStep
extends Recorder
implements SimpleBuildStep, Serializable
Build Step wrapper for
StdoutUpload to be run in pipelines. Run only in post step.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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
ConstructorsConstructorDescriptionStdoutUploadStep(String credentialsId, String bucket, String logName) Constructs a newStdoutUploadStep.StdoutUploadStep(String credentialsId, String bucket, Optional<UploadModule> module, String logName) Construct the StdoutUpload uploader to use the provided credentials to upload build artifacts. -
Method Summary
Modifier and TypeMethodDescription*booleanbooleanvoidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) *voidsetPathPrefix(String pathPrefix) voidsetSharedPublicly(boolean sharedPublicly) voidsetShowInline(boolean showInline) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
StdoutUploadStep
Constructs a newStdoutUploadStep.- Parameters:
credentialsId- The credentials to utilize for authenticating with GCS.bucket- GCS bucket to upload build artifacts to.logName- Name of log file to store to GCS bucket.
-
StdoutUploadStep
public StdoutUploadStep(String credentialsId, String bucket, Optional<UploadModule> module, String logName) Construct the StdoutUpload uploader to use the provided credentials to upload build artifacts.- Parameters:
credentialsId- The credentials to utilize for authenticating with GCS.bucket- GCS bucket to upload build artifacts to.module- Helper class for connecting to the GCS API.logName- Name of log file to store to GCS bucket.
-
-
Method Details
-
setShowInline
@DataBoundSetter public void setShowInline(boolean showInline) - Parameters:
showInline- Whether to indicate in metadata that the file should be viewable inline in web browsers, rather than requiring it to be downloaded first.
-
isShowInline
public boolean isShowInline()- Returns:
- Whether to indicate in metadata that the file should be viewable inline in web browsers, rather than requiring it to be downloaded first.
-
setPathPrefix
- Parameters:
pathPrefix- The path prefix that will be stripped from uploaded files. May be null if no path prefix needs to be stripped. Filenames that do not start with this prefix will not be modified. Trailing slash is automatically added if it is missing.
-
getPathPrefix
-
getLogName
-
getBucket
-
getCredentialsId
-
getRequiredMonitorService
*- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
perform
public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException*- Specified by:
performin interfaceSimpleBuildStep- Throws:
IOException