Class BridgeDownloadManager
- java.lang.Object
-
- io.jenkins.plugins.synopsys.security.scan.bridge.BridgeDownloadManager
-
public class BridgeDownloadManager extends Object
-
-
Constructor Summary
Constructors Constructor Description BridgeDownloadManager(FilePath workspace, TaskListener listener, EnvVars envVars)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkIfBridgeInstalled(String synopsysBridgeInstallationPath)
String
downloadVersionFileFromArtifactory(String directoryUrl)
String
extractVersionFromUrl(String url)
String
getBridgeVersionFromVersionFile(String versionFilePath)
String
getDirectoryUrl(String downloadUrl)
String
getLatestBridgeVersionFromArtifactory(String bridgeDownloadUrl)
void
initiateBridgeDownloadAndUnzip(BridgeDownloadParameters bridgeDownloadParams)
boolean
isSynopsysBridgeDownloadRequired(BridgeDownloadParameters bridgeDownloadParameters)
boolean
isVersionFileAvailableInArtifactory(String directoryUrl)
-
-
-
Constructor Detail
-
BridgeDownloadManager
public BridgeDownloadManager(FilePath workspace, TaskListener listener, EnvVars envVars)
-
-
Method Detail
-
initiateBridgeDownloadAndUnzip
public void initiateBridgeDownloadAndUnzip(BridgeDownloadParameters bridgeDownloadParams) throws PluginExceptionHandler
- Throws:
PluginExceptionHandler
-
isSynopsysBridgeDownloadRequired
public boolean isSynopsysBridgeDownloadRequired(BridgeDownloadParameters bridgeDownloadParameters)
-
checkIfBridgeInstalled
public boolean checkIfBridgeInstalled(String synopsysBridgeInstallationPath)
-
getBridgeVersionFromVersionFile
public String getBridgeVersionFromVersionFile(String versionFilePath)
-
getLatestBridgeVersionFromArtifactory
public String getLatestBridgeVersionFromArtifactory(String bridgeDownloadUrl)
-
downloadVersionFileFromArtifactory
public String downloadVersionFileFromArtifactory(String directoryUrl)
-
isVersionFileAvailableInArtifactory
public boolean isVersionFileAvailableInArtifactory(String directoryUrl)
-
-