eclipse-ee4j / glassfish-fighterfish

FighterFish project
Other
6 stars 11 forks source link

Simplify Jenkins pipeline #47

Closed pzygielo closed 2 years ago

pzygielo commented 2 years ago

This not only simplifies Jenkinsfile but also fixes the pipeline, as with current one, for example https://ci.eclipse.org/glassfish/job/fighterfish/job/PR-46/1/console we have this:

Branch indexing
17:31:15 Connecting to https://api.github.com/ using GitHub bot (username/token)
Connecting to https://api.github.com/ to check permissions of obtain list of BulkSecurityGeneratorProjectV2 for eclipse-ee4j/glassfish-fighterfish
Loading trusted files from base branch master at 80c19244cac8003b58588d75b0c5f8355cf830aa rather than 581b648862d63cc0fae1941e015891d632f2a70f
Obtained Jenkinsfile from 80c19244cac8003b58588d75b0c5f8355cf830aa
[Pipeline] Start of Pipeline
[Pipeline] echo
[WARNING] label option is deprecated. To use a static pod template, use the 'inheritFrom' option.
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
ERROR: Unable to create pod kubernetes glassfish/ci-pod-177fa12d-66f8-4245-8b0c-3cbe6a7ec526-3g49b-4xgxb.
Failure executing: POST at: https://10.30.0.1/api/v1/namespaces/glassfish/pods. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. pods "ci-pod-177fa12d-66f8-4245-8b0c-3cbe6a7ec526-3g49b-4xgxb" is forbidden: unable to validate against any security context constraint: [provider "anyuid": Forbidden: not usable by user or serviceaccount, spec.containers[0].securityContext.runAsUser: Invalid value: 1000100000: must be in the ranges: [1003280000, 1003289999], spec.containers[1].securityContext.runAsUser: Invalid value: 1000100000: must be in the ranges: [1003280000, 1003289999], provider "rootless": Forbidden: not usable by user or serviceaccount, provider "nonroot": Forbidden: not usable by user or serviceaccount, provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount, provider "machine-api-termination-handler": Forbidden: not usable by user or serviceaccount, provider "hostnetwork": Forbidden: not usable by user or serviceaccount, provider "hostaccess": Forbidden: not usable by user or serviceaccount, provider "rook-ceph-test": Forbidden: not usable by user or serviceaccount, provider "node-exporter": Forbidden: not usable by user or serviceaccount, provider "rook-ceph-csi": Forbidden: not usable by user or serviceaccount, provider "privileged": Forbidden: not usable by user or serviceaccount].
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
Queue task was cancelled

GitHub has been notified of this commit’s build result