We use OPA gatekeeper to restrict which images can be used by our kubernetes builds.
This means that if a non-whitelisted image is used, the k8s API server will reject the creation of the pod.
If I manually apply the yaml from jenkins, then the rejection looks like this:
In jenkins the build hangs at "Created Pod" until aborted.
As the error from the API server is immediate and informative, I would really like the message to be made visible in the build log and that the build is terminated with an error in stead of just hanging.