See
https://orch.psi.redhat.com/pnc-web/#/projects/947
```
bacon pnc project list-builds 947 --profile=production -o >
cpaas_maven_builds.json #takes a long time
cat cpaas_maven_builds.json | jq '.[].id' > buildids.lst
for bid in `tail -n 50 buildids.lst`; do printf "{\"build-id\":$bid,\"type\":\"pnc\"},"; done
```
The pipeline clearup seems to work but taskrun clearup fails for some
reason
```
All but 10 PipelineRuns(Completed) deleted in namespace "pct-security-tooling"
Error: failed to delete TaskRun "osh-scan-scm-taskrun-test-pjtvw":
taskruns.tekton.dev "osh-scan-scm-taskrun-test-pjtvw" is forbidden: User
"system:serviceaccount:pct-security-tooling:osh" cannot delete resource
"taskruns" in API group "tekton.dev" in the namespace
"pct-security-tooling"; failed to delete TaskRun
"osh-scan-scm-taskrun-test-9gx7z": taskruns.tekton.dev
"osh-scan-scm-taskrun-test-9gx7z" is forbidden: User
"system:serviceaccount:pct-security-tooling:osh" cannot delete resource
"taskruns" in API group "tekton.dev" in the namespace
"pct-security-tooling"; failed to delete TaskRun
"osh-scan-scm-taskrun-test-g7vlh": taskruns.tekton.dev
"osh-scan-scm-taskrun-test-g7vlh" is forbidden: User
"system:serviceaccount:pct-security-tooling:osh" cannot delete resource
"taskruns" in API group "tekton.dev" in the namespace
"pct-security-tooling"; ....
```
* Alter tekton pipeline/task for from source (haven't done brew builds
yet)
* Propergate scan options (no validation) it be better to cast to the
paramMapper and also have paramMapper give the re-parsed mockbuild
command
Annotate Getters and Hibernate and Jackson weren't playing nice
resulting in errors like -
```
com.fasterxml.jackson.databind.JsonMappingException: Unable to perform requested lazy initialization [com.redhat.pctsec.model.ScanRequests.globalScanProperties] - session is closed and settings disallow loading outside the Session (through reference chain: com.redhat.pctsec.model.Scan["scanRequests"]->com.redhat.pctsec.model.ScanRequests["globalScanProperties"])
```
Rearrange fields above methods in Scan
Copied the PSSaaS approach, did try inheritance on the `git` class for
`scanChainGit` but caused problems with deserialization not matching
`Component` so hack was to duplicate it, will need to sort out the
structures at some point see #11
There is incompatibility between resteasy in quarkus (6.x) to the one
used in PNC (3.x), the API design has changed quite a bit and it seems
impossible to have both exist on the classpath at the same time.
For the one endpoint we need (Build) then our own restclient should do
Hit a bug with pnc rest-easy client builder using javax rather than
jakarta which means the class fails to load at runtime for some reason,
i've tried various dependency inclusions and exclusions as well as using
classic resteasy-client in quarkus, all either cause duplicates or give
the same error
```
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:86)
at org.jboss.pnc.client.ClientBase.<init>(ClientBase.java:76)
at org.jboss.pnc.client.ArtifactClient.<init>(ArtifactClient.java:22)
at com.redhat.pctsec.model.api.service.PncService.<init>(PncService.java:31)
```