Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-1224

Environment variables from provisioning are not available in GitLab jobs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • master
    • Provisioning
    • None
    • Linux/X11

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tosaario Toni Saario
            ulrich.eckhardt Ulrich Eckhardt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes