Improve deprecation process and provide BC so pipelines do not break
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3440136. -->
Reported by: [jonathan1055](https://www.drupal.org/user/92645)
Related to !188 !184
>>>
<p>The current "deprecation warning" job in the <code>.pre</code> only detects deprecated variables if they have been defined at the job level <code>variables:</code> section. For variables defined within jobs, such as <code>composer (next major)</code>, the .pre job does not know about them and therefore is not added to the pipeline. Then the 'composer (next major)' job just fails without any warning, and with no explanation that it is caused by a deprecated variable.</p>
<p>There are several ways this deprecation process can be improved, to give the messages in more than one place.</p>
> Related issue: [Issue #3426292](https://www.drupal.org/node/3426292)
issue