Package io.jenkins.plugins
Class CodeThreatBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.CodeThreatBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
-
Nested Class Summary
Nested ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendStatus(String scanId, Secret accessTokenSecret, String ctServer, String organization_name, String project_name) findWeaknessTitles(String[] arr, String[] keywords) getTitle()voidvoidsetCondition(String condition) voidsetMaxNumberOfCritical(Integer max_number_of_critical) voidsetMaxNumberOfHigh(Integer max_number_of_high) voidsetPolicyName(String policy_name) voidsetScaMaxNumberOfCritical(Integer sca_max_number_of_critical) voidsetScaMaxNumberOfHigh(Integer sca_max_number_of_high) voidsetWeaknessIs(String weakness_is) uploadFile(Secret accessTokenSecret, File fullFile) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, 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
-
CodeThreatBuilder
@DataBoundConstructor public CodeThreatBuilder(String ctServer, String project_name, String fileName, String credentialsId, String organization_name) throws IOException - Throws:
IOException
-
-
Method Details
-
setMaxNumberOfCritical
-
setMaxNumberOfHigh
-
setScaMaxNumberOfCritical
-
setScaMaxNumberOfHigh
-
setWeaknessIs
-
setCondition
-
setPolicyName
-
getCtServer
-
getScanId
-
getScanStatus
-
getMaxNumberOfCritical
-
getMaxNumberOfHigh
-
getScaMaxNumberOfCritical
-
getScaMaxNumberOfHigh
-
getWeaknessIs
-
getCondition
-
getProjectName
-
getTitle
-
getSeverity
-
getPolicyName
-
getToken
- Throws:
IOException
-
uploadFile
- Throws:
IOException
-
awaitScan
- Throws:
IOException
-
endStatus
public String endStatus(String scanId, Secret accessTokenSecret, String ctServer, String organization_name, String project_name) throws IOException - Throws:
IOException
-
findWeaknessTitles
-
perform
public void perform(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException, AbortException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOExceptionAbortException
-