Class Utility
- java.lang.Object
-
- io.jenkins.plugins.synopsys.security.scan.global.Utility
-
public class Utility extends Object
-
-
Constructor Summary
Constructors Constructor Description Utility()
-
Method Summary
-
-
-
Method Detail
-
getDirectorySeparator
public static String getDirectorySeparator(FilePath workspace, TaskListener listener)
-
getAgentOs
public static String getAgentOs(FilePath workspace, TaskListener listener)
-
getAgentOsArch
public static String getAgentOsArch(FilePath workspace, TaskListener listener)
-
removeFile
public static void removeFile(String filePath, FilePath workspace, TaskListener listener)
-
isStringNullOrBlank
public static boolean isStringNullOrBlank(String str)
-
getHttpURLConnection
public static HttpURLConnection getHttpURLConnection(URL url, EnvVars envVars, LoggerWrapper logger)
-
getProxy
public static String getProxy(URL url, EnvVars envVars, LoggerWrapper logger) throws IOException
- Throws:
IOException
-
getProxyValue
public static String getProxyValue(EnvVars envVars, LoggerWrapper logger) throws MalformedURLException
- Throws:
MalformedURLException
-
getEnvOrSystemProxyDetails
public static String getEnvOrSystemProxyDetails(String proxyType, EnvVars envVars)
-
setDefaultProxyAuthenticator
public static void setDefaultProxyAuthenticator(String userInfo)
-
installedBranchSourceDependencies
public static Map<String,Boolean> installedBranchSourceDependencies()
-
getDefaultSarifReportFilePath
public static String getDefaultSarifReportFilePath(boolean isBlackDuckScan, boolean isPolarisDuckScan)
-
getCustomSarifReportFilePath
public static String getCustomSarifReportFilePath(Map<String,Object> scanParams, boolean isBlackDuckScan, boolean isPolarisDuckScan)
-
determineSARIFReportFilePath
public static String determineSARIFReportFilePath(String customSarifReportFilePath, String defaultSarifReportFilePath)
-
determineSARIFReportFileName
public static String determineSARIFReportFileName(String customSarifReportFilePath)
-
isPullRequestEvent
public static boolean isPullRequestEvent(EnvVars envVars)
-
getMappedResultForBuildStatus
public static Result getMappedResultForBuildStatus(BuildStatus buildStatus)
-
-