Class ScannerArgumentService
- java.lang.Object
-
- io.jenkins.plugins.synopsys.security.scan.service.ScannerArgumentService
-
public class ScannerArgumentService extends Object
-
-
Constructor Summary
Constructors Constructor Description ScannerArgumentService(TaskListener listener, EnvVars envVars, FilePath workspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createBridgeInputJson(Map<String,Object> scanParameters, Object scanObject, Object scmObject, boolean isPrCommentSet, NetworkAirGap networkAirGap, Sarif sarif, String jsonPrefix, Project project)
List<String>
getCommandLineArgs(Map<String,Boolean> installedBranchSourceDependencies, Map<String,Object> scanParameters, FilePath bridgeInstallationPath)
boolean
isPrCommentValueSet(Map<String,Object> scanParameters)
Sarif
prepareSarifObject(Set<String> securityProducts, Map<String,Object> scanParameters)
void
removeTemporaryInputJson(List<String> commandLineArgs)
void
setProjectObject(BridgeInput bridgeInput, Project project)
void
setScmObject(BridgeInput bridgeInput, Object scmObject)
String
writeInputJsonToFile(String inputJson, String jsonPrefix)
-
-
-
Constructor Detail
-
ScannerArgumentService
public ScannerArgumentService(TaskListener listener, EnvVars envVars, FilePath workspace)
-
-
Method Detail
-
getCommandLineArgs
public List<String> getCommandLineArgs(Map<String,Boolean> installedBranchSourceDependencies, Map<String,Object> scanParameters, FilePath bridgeInstallationPath) throws PluginExceptionHandler
- Throws:
PluginExceptionHandler
-
createBridgeInputJson
public String createBridgeInputJson(Map<String,Object> scanParameters, Object scanObject, Object scmObject, boolean isPrCommentSet, NetworkAirGap networkAirGap, Sarif sarif, String jsonPrefix, Project project)
-
setProjectObject
public void setProjectObject(BridgeInput bridgeInput, Project project)
-
setScmObject
public void setScmObject(BridgeInput bridgeInput, Object scmObject)
-
-