Make sure that every job has a stage assigned

Open Grzegorz Bizon requested to merge fix/gb/ensure-that-job-belongs-to-stage into master

What does this MR do?

This MR is needed to ensure that every CI/CD job has a stage assigned. Jobs for pages deployments and external commit statuses in particular.

Does this MR meet the acceptance criteria?

  • Changelog entry added, if necessary
  • Tests added for this feature/bug
  • Has been reviewed by Backend

What are the relevant issue numbers?

See #38756