title: GitLab CI Script variables
body: <p>I have gitlab deployment activem and I want to get the deploy script to have some custom information about the deployment process (like <code>$CI_PIPELINE_ID</code>).</p>
  
  <p>However, the script doesn't get the variables, instead it gets the "raw text".</p>
  
  <blockquote>
    <p>the call performed by the script is: <code>$ python deploy/deploy.py $CI_COMMIT_TAG $CI_ENVIRONMENT_URL $CI_PIPELINE_ID</code></p>
  </blockquote>
  
  <p>How can i get it to use the variables?</p>
  
  <p>My .gitlab-ci.yml:</p>
  
  <pre><code>image: python:2.7
  
  before_script:
    - whoami
    - sudo apt-get --quiet update --yes
    - sudo chmod +x deploy/deploy.py
  deploy_production:
    stage: deploy
    environment: Production
    only:
        - tags
        - trigger
    except:
        # - develop
        - /^feature\/.*$/
        - /^hotfix\/.*$/
        - /^release\/.*$/
  
    script:
      - python deploy/deploy.py $CI_COMMIT_TAG $CI_ENVIRONMENT_URL $CI_PIPELINE_ID
  </code></pre>