Class ScanParametersFactory
- java.lang.Object
-
- io.jenkins.plugins.synopsys.security.scan.factory.ScanParametersFactory
-
public class ScanParametersFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description ScanParametersFactory(EnvVars envVars, FilePath workspace)
-
Method Summary
-
-
-
Constructor Detail
-
ScanParametersFactory
public ScanParametersFactory(EnvVars envVars, FilePath workspace) throws AbortException
- Throws:
AbortException
-
-
Method Detail
-
createPipelineCommand
public static PluginParametersHandler createPipelineCommand(Run<?,?> run, TaskListener listener, EnvVars envVars, Launcher launcher, Node node, FilePath workspace)
-
preparePipelineParametersMap
public static Map<String,Object> preparePipelineParametersMap(SecurityScan securityScan, Map<String,Object> parametersMap, TaskListener listener) throws PluginExceptionHandler
- Throws:
PluginExceptionHandler
-
getGlobalConfigurationValues
public static Map<String,Object> getGlobalConfigurationValues(FilePath workspace, TaskListener listener)
-
addParameterIfNotBlank
public static void addParameterIfNotBlank(Map<String,Object> parameters, String key, String value)
-
prepareBlackDuckParametersMap
public static Map<String,Object> prepareBlackDuckParametersMap(SecurityScan securityScan)
-
prepareCoverityParametersMap
public static Map<String,Object> prepareCoverityParametersMap(SecurityScan securityScan)
-
preparePolarisParametersMap
public static Map<String,Object> preparePolarisParametersMap(SecurityScan securityScan)
-
prepareAddtionalParametersMap
public static Map<String,Object> prepareAddtionalParametersMap(SecurityScan securityScan)
-
prepareSarifReportParametersMap
public static Map<String,Object> prepareSarifReportParametersMap(SecurityScan securityScan)
-
getSynopsysBridgeDownloadUrlBasedOnAgentOS
public static String getSynopsysBridgeDownloadUrlBasedOnAgentOS(FilePath workspace, TaskListener listener, String synopsysBridgeDownloadUrlForMac, String synopsysBridgeDownloadUrlForLinux, String synopsysBridgeDownloadUrlForWindows)
-
validateProduct
public static boolean validateProduct(String product, TaskListener listener)
-
getBuildResultIfIssuesAreFound
public static Result getBuildResultIfIssuesAreFound(int exitCode, String markBuildIfIssuesArePresent, LoggerWrapper logger)
-
-