title: Gitlab-Ci: How could I share data between jobs
body: <p>I want to share a file between two jobs and modify it if there are changed files. The python script compare the <code>cache.json</code> file with changes and modify the cahce file sometimes.</p>
  
  <p><code>.gitlab-ci.yaml</code>:</p>
  
  <pre><code>image: ubuntu
  
  stages:
    - test
  
  cache:
    key: one-cache
    paths:
      - cache.json
  
   job1:
     stage: test
  
  script:
    # - touch cache.json
    - cat cache.json
    - python3 modify_json_file.py
    - cat cache.json
  </code></pre>
  
  <p>The problem is that it the <code>cache.json</code> file not exist at the next job run. I get the error message: <code>cat: cache.json: No such file or directory</code>. I did also insert once the touch command, but this doesn't change anything for the next run without the touch command.</p>
  
  <p>Do I something wrong or don't I understand the <code>cache</code> at gitlab wrong.</p>