title: Gitlab Job variable to use in python code
body: <p>I am trying to create a pipeline and have defined some variable in my gitlab job which will be used by python script to populate results.</p>
  <p>Is there any way I can call/define those variable in my python script.</p>
  <p>For example:</p>
  <pre><code>.test-report:
    extends: .test_report_setup
    tags: *def_runners_tags
    variables:
      value-path: ${CI_PROJECT_DIR}/value
  </code></pre>
  <p>Now in my python script I want to call the variable 'value-path' to fetch or read files located in that directory. (Please note that variable is a custom variable on gitlab)</p>
  <pre><code>file_path = '&lt;value-path&gt;'    &lt;---- To get the gitlab job variable here
  
  file_in = open(file_path + &quot;id.txt&quot;)
  </code></pre>
  <p>Please help me how I can get it in my python script as I am a bit stuck on it.</p>
  <p>Any suggestion/help on this will be appreciated. Thanks in advance.</p>