Package com.checkmarx.jenkins
Class PluginUtils
java.lang.Object
com.checkmarx.jenkins.PluginUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringauthValidate(ScanConfig scanConfig, String checkmarxCliExecutable) static CheckmarxInstallationfindCheckmarxInstallation(String checkmarxInstallation) generateHTMLReport(UUID scanId, ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log) generateJsonReport(UUID scanId, ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log) static Stringstatic StringgetProxy()static StringgetScanIdFromLogFile(String logs) static voidinsertSecretsAsEnvVars(ScanConfig scanConfig, EnvVars envVars) static booleanisPolicyViolated(String logs) scanCancel(UUID scanId, ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log) submitScanDetailsToWrapper(ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log)
-
Field Details
-
CHECKMARX_AST_RESULTS
- See Also:
-
CHECKMARX_AST_RESULTS_HTML
- See Also:
-
CHECKMARX_AST_RESULTS_JSON
- See Also:
-
REGEX_SCAN_ID_FROM_LOGS
- See Also:
-
HTTP_PROXY
- See Also:
-
defaultOutputName
- See Also:
-
-
Constructor Details
-
PluginUtils
public PluginUtils()
-
-
Method Details
-
findCheckmarxInstallation
-
submitScanDetailsToWrapper
public static List<String> submitScanDetailsToWrapper(ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log) throws IOException - Throws:
IOException
-
scanCancel
public static List<String> scanCancel(UUID scanId, ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
generateHTMLReport
public static List<String> generateHTMLReport(UUID scanId, ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log) throws IOException - Throws:
IOException
-
generateJsonReport
public static List<String> generateJsonReport(UUID scanId, ScanConfig scanConfig, String checkmarxCliExecutable, CxLoggerAdapter log) throws IOException - Throws:
IOException
-
authValidate
public static String authValidate(ScanConfig scanConfig, String checkmarxCliExecutable) throws IOException, InterruptedException, com.checkmarx.ast.wrapper.CxException - Throws:
IOExceptionInterruptedExceptioncom.checkmarx.ast.wrapper.CxException
-
getAgentName
-
getScanIdFromLogFile
-
isPolicyViolated
-
insertSecretsAsEnvVars
public static void insertSecretsAsEnvVars(ScanConfig scanConfig, EnvVars envVars) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getProxy
-