Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
master
-
None
Description
For reference: https://git.intra.qt.io/ci/gitlab-coin-template/-/merge_requests/16
The bash executing the GitLab job script does not read /.bash_profile or /.bashrc. This in turn causes changes (e.g. to the PATH) in those files to be lost. During provisioning, this specifically affects any use of the SetEnvVar shell function, which writes to the mentioned two files.
For example, this breaks sccache on Ubuntu 22.04. As a workaround (yet untested), you can run source ~/.bash_profile in your GitLab job.