title: Are predefined variables in Gitlab CI/CD avaliable in .gitlab-ci.yml?
body: <p>I were trying to use CI_COMMIT_SHORT_SHA variable in config file (.gitlab-ci.yml), but it returned nothing.</p>
  
  <p>I wanted to use CI_COMMIT_SHORT_SHA as part of directory name which were later pushed to the server by rsync. It should have returned short hash from current commit. Deployment passed successfully but the hash was empty.</p>
  
  <pre><code>deploy production:
      ...
      script:
          ...
          - VARIABLE_NAME=something_$CI_COMMIT_SHORT_SHA
          - echo $VARIABLE_NAME
  </code></pre>
  
  <p>Code above return just <code>something_</code> instead of e.g. <code>something_aef34a4x</code></p>
  
  <p>So can I use CI_COMMIT_SHORT_SHA or other predefined variables like this at all or what is the right way?</p>