Package com.crowdstrike.plugins.crwds
Class FalconScanner
java.lang.Object
com.crowdstrike.plugins.crwds.FalconScanner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
archiveArtifacts
(FalconContext context, int buildStatus, String artifactName, String html, String falconScanReport, String policyJson, String uniqueId) int
execute
(FalconContext falconContext, String imageName, String imageTag, Integer timeout, String clientSecret, String clientId, String authDomain, Boolean neverFail, Boolean skipImageUpload, String artifactName, String uniqueId) static String
getAccessToken
(FalconContext context, String cid, String secret, String authDomain, Integer timeout) static String
getFalconReport
(FalconContext context, String accessToken, String completeUrl, boolean isScanReport) static org.json.JSONObject
parseFromJsonString
(String jsonString)
-
Constructor Details
-
FalconScanner
public FalconScanner()
-
-
Method Details
-
execute
public int execute(FalconContext falconContext, String imageName, String imageTag, Integer timeout, String clientSecret, String clientId, String authDomain, Boolean neverFail, Boolean skipImageUpload, String artifactName, String uniqueId) throws IOException, InterruptedException, ExecutionException, NullPointerException -
archiveArtifacts
public void archiveArtifacts(FalconContext context, int buildStatus, String artifactName, String html, String falconScanReport, String policyJson, String uniqueId) throws AbortException - Throws:
AbortException
-
getAccessToken
-
getFalconReport
public static String getFalconReport(FalconContext context, String accessToken, String completeUrl, boolean isScanReport) -
parseFromJsonString
-