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 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
ConstructorsConstructorDescriptionSecOneScannerPlugin(String apiCredentialsId, ObjectFactory objectFactory, boolean runSec1SastSecurity) -
Method Summary
Modifier and TypeMethodDescriptiongetApiKey(Run<?, ?> run, TaskListener listener) getGitBranch(String repositoryPath) booleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidbooleanvoidsetActionOnThresholdBreached(String actionOnThresholdBreached) voidsetApiCredentialsId(String apiCredentialsId) voidsetApplyThreshold(boolean applyThreshold) voidsetRunSec1SastSecurity(boolean runSec1SastSecurity) voidsetThreshold(Threshold threshold) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, 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, prebuildMethods 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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
IOExceptionInterruptedException
-
perform
public void perform(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
getApiKey
-
requiresWorkspace
public boolean requiresWorkspace()- Specified by:
requiresWorkspacein interfaceSimpleBuildStep
-
getGitBranch
- Throws:
IOException
-
getGitUrl
- Throws:
IOException
-
getGitFolderConfigPath
-