public class QCScanRest extends Object
Constructor and Description |
---|
QCScanRest() |
Modifier and Type | Method and Description |
---|---|
int |
checkHighSeverityIssuesCount(SNowScanRestResponse snowScan,
int highSeverityThreshold,
String credential,
org.apache.http.client.HttpClient client,
String issueUrl) |
Map<String,Object> |
doScan(String credential,
String instanceUrl,
hudson.model.TaskListener taskListener,
int issuesCountThreshold,
int techDebtThreshold,
int qcThreshold,
int highSeverityThreshold)
This method is responsible to do scan
|
int |
evaluateScanResult(SNowScanRestResponse snowScan,
int issuesCountThreshold,
int techDebtThreshold,
int qcThreshold) |
public Map<String,Object> doScan(String credential, String instanceUrl, hudson.model.TaskListener taskListener, int issuesCountThreshold, int techDebtThreshold, int qcThreshold, int highSeverityThreshold)
credential
- The API keyinstanceUrl
- The URL to scantaskListener
- The task Listener - logging, etcissuesCountThreshold
- Number of issues to fail the buildtechDebtThreshold
- Technical debt minutes to fail the buildqcThreshold
- Minimum Quality of Cloud to fail the buildhighSeverityThreshold
- Number of high severity issues to fail the buildpublic int evaluateScanResult(SNowScanRestResponse snowScan, int issuesCountThreshold, int techDebtThreshold, int qcThreshold)
snowScan
- The results of the scanissuesCountThreshold
- Number of issues to fail the buildtechDebtThreshold
- Technical debt to fail the buildqcThreshold
- Minimum Quality of Cloud to fail the buildpublic int checkHighSeverityIssuesCount(SNowScanRestResponse snowScan, int highSeverityThreshold, String credential, org.apache.http.client.HttpClient client, String issueUrl) throws IOException
IOException
Copyright © 2016–2018. All rights reserved.