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

public class SecOneScannerPlugin extends Builder implements SimpleBuildStep
  • Constructor Details

    • SecOneScannerPlugin

      @DataBoundConstructor public SecOneScannerPlugin(String apiCredentialsId)
  • Method Details

    • getApiCredentialsId

      public String getApiCredentialsId()
    • setApiCredentialsId

      public void setApiCredentialsId(String apiCredentialsId)
    • isApplyThreshold

      public boolean isApplyThreshold()
    • setApplyThreshold

      @DataBoundSetter public void setApplyThreshold(boolean applyThreshold)
    • getThreshold

      public Threshold getThreshold()
    • setThreshold

      @DataBoundSetter public void setThreshold(Threshold threshold)
    • getActionOnThresholdBreached

      public String getActionOnThresholdBreached()
    • setActionOnThresholdBreached

      @DataBoundSetter public void setActionOnThresholdBreached(String actionOnThresholdBreached)
    • isRunSca

      public boolean isRunSca()
    • setRunSca

      @DataBoundSetter public void setRunSca(boolean runSca)
    • isRunSast

      public boolean isRunSast()
    • setRunSast

      @DataBoundSetter public void setRunSast(boolean runSast)
    • getScanTag

      public String getScanTag()
    • setScanTag

      @DataBoundSetter public void setScanTag(String scanTag)
    • getScmUrl

      public String getScmUrl()
    • setScmUrl

      @DataBoundSetter public void setScmUrl(String scmUrl)
    • isAsyncScan

      public boolean isAsyncScan()
    • setAsyncScan

      @DataBoundSetter public void setAsyncScan(boolean asyncScan)
    • isSastIncrementalScan

      public boolean isSastIncrementalScan()
    • setSastIncrementalScan

      @DataBoundSetter public void setSastIncrementalScan(boolean sastIncrementalScan)
    • getTag

      public String getTag()
    • setTag

      public void setTag(String tag)
    • isRunSec1SastSecurity

      public boolean isRunSec1SastSecurity()
    • setRunSec1SastSecurity

      public void setRunSec1SastSecurity(boolean runSec1SastSecurity)
    • perform

      public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
      Specified by:
      perform in interface BuildStep
      Overrides:
      perform in class BuildStepCompatibilityLayer
      Throws:
      IOException
      InterruptedException
    • perform

      public void perform(Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
      Specified by:
      perform in interface SimpleBuildStep
      Throws:
      InterruptedException
      IOException
    • getApiKey

      public String getApiKey(Run<?,?> run, TaskListener listener)
    • requiresWorkspace

      public boolean requiresWorkspace()
      Specified by:
      requiresWorkspace in interface SimpleBuildStep
    • getGitBranch

      public String getGitBranch(String repositoryPath) throws IOException
      Throws:
      IOException
    • getGitUrl

      public String getGitUrl(String repositoryPath) throws IOException
      Throws:
      IOException
    • getGitFolderConfigPath

      public String getGitFolderConfigPath()