# Pass Value Between Pipelines

**URL:** <https://drone.discourse.group/t/pass-value-between-pipelines/8739>\
**Category:** Drone Support\
**Created:** [February 11, 2021, 9:06am UTC](https://drone.discourse.group/t/pass-value-between-pipelines/8739 "2021-02-11T09:06:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ds-amo](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ds-amo/32/2891_2.png) [@ds-amo](https://drone.discourse.group/u/ds-amo)\
**Post date:** [February 11, 2021, 9:06am UTC](https://drone.discourse.group/t/pass-value-between-pipelines/8739/1 "2021-02-11T09:06:54Z")

</div>

Hi,

I have a drone file containing multiple pipelines that run in a sequence via dependancies.

In the first pipeline a value is generated that I would like to store as a variable and use in one of the other pipelines.

How would I go about doing this? I’ve seen that variables can be passed between steps via a file but this isn’t possible with pipelines from what i’ve seen and tried.

Thanks

---

<div class="post-metadata">

**Author:** ![csgitharness](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/csgitharness/32/904_2.png) [@csgitharness](https://drone.discourse.group/u/csgitharness)\
**Post date:** [February 11, 2021, 11:49am UTC](https://drone.discourse.group/t/pass-value-between-pipelines/8739/2 "2021-02-11T11:49:18Z")

</div>

Hello ds-amo,

You can use workspace option and check if this helps [Workspace | Drone](https://docs.drone.io/pipeline/docker/syntax/workspace/)

Regards,  
Harness Support

---

<div class="post-metadata">

**Author:** ![ds-amo](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ds-amo/32/2891_2.png) [@ds-amo](https://drone.discourse.group/u/ds-amo)\
**Post date:** [February 12, 2021, 11:49am UTC](https://drone.discourse.group/t/pass-value-between-pipelines/8739/3 "2021-02-12T11:49:20Z")

</div>

This unfortunately only seems to work between pipeline steps and not pipelines themselves. The workspace is deleted when the first pipeline completes and created again when the second pipeline starts.
