Package io.jenkins.plugins.finitestate
Class FiniteStateAnalyzeBinaryRecorder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
io.jenkins.plugins.finitestate.BaseFiniteStateRecorder
io.jenkins.plugins.finitestate.FiniteStateAnalyzeBinaryRecorder
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
Refactored Binary Analysis Recorder that extends the base class to reduce code duplication.
This demonstrates how the new base classes can be used to eliminate repetitive code.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classNested 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 class io.jenkins.plugins.finitestate.BaseFiniteStateRecorder
apiTokenCredentialsId, DEFAULT_POLL_TIMEOUT_MINUTES, externalizableId, pollTimeoutMinutes, preRelease, projectName, projectVersion, subdomain, waitForCompletionFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionFiniteStateAnalyzeBinaryRecorder(String subdomain, String apiTokenCredentialsId, String binaryFilePath, String projectName) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureRequest(FiniteStateScanRequest request) Populate the type-specific portion of the scan request (kind + per-analysis fields) for the public v0 REST transport.protected StringGet the analysis type name for logging and resultsbooleanprotected StringGet the file path field name for validationprotected StringGet the file path valuebooleanbooleanbooleanvoidsetBinaryFilePath(String binaryFilePath) voidsetConfigEnabled(boolean configEnabled) voidsetReachabilityEnabled(boolean reachabilityEnabled) voidsetSastEnabled(boolean sastEnabled) voidsetScaEnabled(boolean scaEnabled) Methods inherited from class io.jenkins.plugins.finitestate.BaseFiniteStateRecorder
addConsolidatedResult, addConsolidatedResult, getApiTokenCredentialsId, getExternalizableId, getFileFromWorkspace, getPollTimeoutMinutes, getPreRelease, getProjectName, getProjectVersion, getSecretTextValue, getSubdomain, getWaitForCompletion, logCommonInfo, parseVersion, perform, setApiTokenCredentialsId, setExternalizableId, setPollTimeoutMinutes, setPreRelease, setProjectName, setProjectVersion, setSubdomain, setWaitForCompletion, validateCommonFieldsMethods 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, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
FiniteStateAnalyzeBinaryRecorder
-
-
Method Details
-
getBinaryFilePath
-
getScaEnabled
public boolean getScaEnabled() -
getSastEnabled
public boolean getSastEnabled() -
getConfigEnabled
public boolean getConfigEnabled() -
getReachabilityEnabled
public boolean getReachabilityEnabled() -
setBinaryFilePath
-
setScaEnabled
@DataBoundSetter public void setScaEnabled(boolean scaEnabled) -
setSastEnabled
@DataBoundSetter public void setSastEnabled(boolean sastEnabled) -
setConfigEnabled
@DataBoundSetter public void setConfigEnabled(boolean configEnabled) -
setReachabilityEnabled
@DataBoundSetter public void setReachabilityEnabled(boolean reachabilityEnabled) -
configureRequest
Description copied from class:BaseFiniteStateRecorderPopulate the type-specific portion of the scan request (kind + per-analysis fields) for the public v0 REST transport. The framework fills the common fields (subdomain, token, project, version, polling, etc.).- Specified by:
configureRequestin classBaseFiniteStateRecorder
-
getAnalysisType
Description copied from class:BaseFiniteStateRecorderGet the analysis type name for logging and results- Specified by:
getAnalysisTypein classBaseFiniteStateRecorder
-
getFilePathFieldName
Description copied from class:BaseFiniteStateRecorderGet the file path field name for validation- Specified by:
getFilePathFieldNamein classBaseFiniteStateRecorder
-
getFilePathValue
Description copied from class:BaseFiniteStateRecorderGet the file path value- Specified by:
getFilePathValuein classBaseFiniteStateRecorder
-