Browse Source

Call run on the single-git-scan.sh

Also call run on the Scan
Fix typos
refactor_future_hack
Jonathan Christison 3 years ago
parent
commit
64c84c8764
  1. 1
      hack/single-git-scan.sh
  2. 2
      src/main/java/com/redhat/pctsec/model/ScanRequest.java
  3. 3
      src/main/java/com/redhat/pctsec/model/ScanRequests.java

1
hack/single-git-scan.sh

@ -6,4 +6,5 @@ curl --get \
localhost:8080/api/v1a/Scan/single/git -vv
curl --get localhost:8080/api/v1a/Scan/1 -vv
curl --get localhost:8080/api/v1a/Scan/1/run -vv

2
src/main/java/com/redhat/pctsec/model/ScanRequest.java

@ -39,7 +39,7 @@ public class ScanRequest {
btr = new brewTaskRun();
btr.invokeScanTask(this.brewBuild);
}
else (this.scmurl != null && !this.scmurl.isEmpty())
else if (this.scmurl != null && !this.scmurl.isEmpty())
{
plr = new scmUrlPipelineRun();
plr.invokeOshScmScanPipeline(this.scmurl.get("repo"), this.scmurl.get("ref"));

3
src/main/java/com/redhat/pctsec/model/ScanRequests.java

@ -15,9 +15,6 @@ public class ScanRequests {
private Set<ScanRequest> scanRequests = new HashSet<>();
private HashMap<String, String> globalScanProperties;
public ScanRequests(){
this.id =
}
public ScanRequests(pssaas pssaas){
//Iterate scan payload and create scans
}

Loading…
Cancel
Save