All variants run the same Drupal version when the pipeline is triggered via web

Problem
Previously the core version and other details were displayed in PHPunit jobs using drush status. But recently, drush had to be removed and the context information was done in a different way.

However, it seems that the phpunit variant jobs for 'next minor', 'previous major' all now show the current core version in the log. See the attached screen grabs which all come from this pipeline

Findings
The issue happens when triggering a pipeline via the UI with all the values prepopulated, as these values go to all variants, including _TARGET_CORE.

Everything here likewise applies to the _TARGET_PHP variable.

Proposed resolution
Document this issue in the docs.

Also thought about not running pipelines on CI_PIPELINE_SOURCE=web but this might limit actual use cases and might be too radical, so I don't think we should do this.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information