# How share data between jobs in same stage?

**URL:** <https://travis-ci.community/t/how-share-data-between-jobs-in-same-stage/14260>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [April 26, 2024, 2:36pm UTC](https://travis-ci.community/t/how-share-data-between-jobs-in-same-stage/14260 "2024-04-26T14:36:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttodua](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ttodua/32/9189_2.png) [@ttodua](https://travis-ci.community/u/ttodua)\
**Post date:** [April 26, 2024, 2:36pm UTC](https://travis-ci.community/t/how-share-data-between-jobs-in-same-stage/14260/1 "2024-04-26T14:36:46Z")

</div>

I have looked into “workspaces” [Using Workspaces (Beta) - Travis CI](https://docs.travis-ci.com/user/using-workspaces/) but it does not work when I try to share file between jobs which happen on same stage.  
any advises?

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 2, 2024, 4:23pm UTC](https://travis-ci.community/t/how-share-data-between-jobs-in-same-stage/14260/2 "2024-05-02T16:23:36Z")

</div>

Hi @ttodua,

Can I see your `.travis.yml`?

---

<div class="post-metadata">

**Author:** ![ttodua](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ttodua/32/9189_2.png) [@ttodua](https://travis-ci.community/u/ttodua)\
**Post date:** [May 7, 2024, 2:48pm UTC](https://travis-ci.community/t/how-share-data-between-jobs-in-same-stage/14260/3 "2024-05-07T14:48:38Z")

</div>

You asked for example travis.yml, but the thing is that i dont have the one that works, tried many different configurations, so can’t provide any specific. what I ask is simple how can I do so two jobs, which are running parallelly (on same stage) shared some data (or file) using workspaces? because, with workspaces I was only able to share between stages, like:

```auto
jobs:
  include:
    - job: "cs_job"
      workspaces:
        create:
          name: wks1
          paths:
            - data1.json
      script:
        - node my.js

    - job: "pjp_job"
      workspaces:
        use:
        - wks1
      script: 
        - node my.js

```

so, in my.js I want to read&write into .json file so both jobs could talk to each other. even I am ok if there is a way to share some environment variable, if file can’t be shared.  
I just want one job to signal another job about it’s failure/success. because of complexity i dont want to split that into multiple stages.
