Reapply "Fix priority of most important trusted pipelines." (#2822) (#2829)

This reverts commit 5b81ed94dbe89092ac599d8d08e9ad72509e95b6.

Additional fix: Explicitly set priority value - TF doesn't like
undefined variables, and $try doesn't help either.
6 files changed