NETWAYS / gitlab-training

Open Source Training for GitLab and Git
https://www.netways.de/trainings/gitlab/
Other
67 stars 24 forks source link

Adjust Gitlab CI Variable #262

Closed Jan-Schuppik closed 3 months ago

Jan-Schuppik commented 3 months ago

The Code example of environment variables in Gitlab (Slide 149) doesn't work.

job1:
  script:
  - echo "Job for the Commit: '$CI_COMMIT_SHA'"

The Env Variable must be placed outside of the string

job1:
  script:
  - echo "Job for the Commit: " $CI_COMMIT_SHA