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, externalizableId, preRelease, projectName, projectVersion, subdomainFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionFiniteStateAnalyzeBinaryRecorder(String subdomain, String apiTokenCredentialsId, String binaryFilePath, String projectName) -
Method Summary
Modifier and TypeMethodDescriptionprotected intexecuteAnalysis(FilePath cltPath, FilePath filePath, String projectName, String projectVersion, FilePath workspace, Launcher launcher, TaskListener listener) Abstract method for executing the specific analysisprotected StringGet the analysis type name for logging and resultsbooleanprotected StringGet the file path field name for validationprotected StringGet the file path valuebooleanbooleanvoidsetBinaryFilePath(String binaryFilePath) voidsetConfigEnabled(boolean configEnabled) voidsetSastEnabled(boolean sastEnabled) voidsetScaEnabled(boolean scaEnabled) Methods inherited from class io.jenkins.plugins.finitestate.BaseFiniteStateRecorder
addConsolidatedResult, getApiTokenCredentialsId, getCLTPath, getExternalizableId, getFileFromWorkspace, getPreRelease, getProjectName, getProjectVersion, getSecretTextValue, getSubdomain, logCommonInfo, parseVersion, perform, setApiTokenCredentialsId, setExternalizableId, setPreRelease, setProjectName, setProjectVersion, setSubdomain, 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() -
setBinaryFilePath
-
setScaEnabled
@DataBoundSetter public void setScaEnabled(boolean scaEnabled) -
setSastEnabled
@DataBoundSetter public void setSastEnabled(boolean sastEnabled) -
setConfigEnabled
@DataBoundSetter public void setConfigEnabled(boolean configEnabled) -
executeAnalysis
protected int executeAnalysis(FilePath cltPath, FilePath filePath, String projectName, String projectVersion, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException Description copied from class:BaseFiniteStateRecorderAbstract method for executing the specific analysis- Specified by:
executeAnalysisin classBaseFiniteStateRecorder- Throws:
IOExceptionInterruptedException
-
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
-