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 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 inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendStatus
(String scanId, Secret accessTokenSecret, String ctServer, String organization_name, String project_name) findWeaknessTitles
(String[] arr, String[] keywords) getTitle()
void
void
setCondition
(String condition) void
setMaxNumberOfCritical
(Integer max_number_of_critical) void
setMaxNumberOfHigh
(Integer max_number_of_high) void
setPolicyName
(String policy_name) void
setScaMaxNumberOfCritical
(Integer sca_max_number_of_critical) void
setScaMaxNumberOfHigh
(Integer sca_max_number_of_high) void
setWeaknessIs
(String weakness_is) uploadFile
(Secret accessTokenSecret, File fullFile) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
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, getRequiredMonitorService, perform, prebuild
Methods 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:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
AbortException
-