.gitlab-ci.yml: Persist result vars between script & after_script
Description
after_script is executed in a new shell, as such it doesn't have
access to previously exported vars.
This merge request, when merged, will address issue/bug:
https://groups.google.com/g/remote-execution-apis/c/zw_YDvbHAKM/m/ExJT1N70BQAJ
Edited by Tom Pollard