Avoid reporting error in Sentry for known failures
What does this MR do and why?
Avoid reporting error in Sentry for known failures
When CI_JOB_TOKEN is plain text (legacy), attempting to decode it as JWT will raise JWT::DecodeError. Since requests using CI job token are very frequent it can log a lot of noise in Sentry.
Changelog: fixed
References
gitlab-com/gl-infra/production#18916 (comment 2234618425)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.