Class SecOneScannerPlugin
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.secone.security.SecOneScannerPlugin
- 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
ConstructorDescriptionSecOneScannerPlugin
(String apiCredentialsId, ObjectFactory objectFactory, boolean runSec1SastSecurity) -
Method Summary
Modifier and TypeMethodDescriptiongetApiKey
(Run<?, ?> run, TaskListener listener) getGitBranch
(String repositoryPath) boolean
boolean
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) void
boolean
void
setActionOnThresholdBreached
(String actionOnThresholdBreached) void
setApiCredentialsId
(String apiCredentialsId) void
setApplyThreshold
(boolean applyThreshold) void
setRunSec1SastSecurity
(boolean runSec1SastSecurity) void
setThreshold
(Threshold threshold) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, 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, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform
-
Constructor Details
-
SecOneScannerPlugin
@DataBoundConstructor public SecOneScannerPlugin(String apiCredentialsId, ObjectFactory objectFactory, boolean runSec1SastSecurity)
-
-
Method Details
-
getApiCredentialsId
-
setApiCredentialsId
-
isApplyThreshold
public boolean isApplyThreshold() -
setApplyThreshold
@DataBoundSetter public void setApplyThreshold(boolean applyThreshold) -
getThreshold
-
setThreshold
-
getActionOnThresholdBreached
-
setActionOnThresholdBreached
-
isRunSec1SastSecurity
public boolean isRunSec1SastSecurity() -
setRunSec1SastSecurity
@DataBoundSetter public void setRunSec1SastSecurity(boolean runSec1SastSecurity) -
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
IOException
InterruptedException
-
perform
public void perform(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getApiKey
-
requiresWorkspace
public boolean requiresWorkspace()- Specified by:
requiresWorkspace
in interfaceSimpleBuildStep
-
getGitBranch
- Throws:
IOException
-
getGitUrl
- Throws:
IOException
-
getGitFolderConfigPath
-