# "drone exec" does not support global pipeline variables

**URL:** <https://drone.discourse.group/t/drone-exec-does-not-support-global-pipeline-variables/7608>\
**Category:** Drone Bugs\
**Created:** [June 10, 2021, 8:42am UTC](https://drone.discourse.group/t/drone-exec-does-not-support-global-pipeline-variables/7608 "2021-06-10T08:42:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![1-alex98](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/1-alex98/32/3324_2.png) [@1-alex98](https://drone.discourse.group/u/1-alex98)\
**Post date:** [June 10, 2021, 8:42am UTC](https://drone.discourse.group/t/drone-exec-does-not-support-global-pipeline-variables/7608/1 "2021-06-10T08:42:19Z")

</div>

Following pipeline(docker pipeline as requested by docs should be supported):

```auto
kind: pipeline
type: docker
name: default
platform:
  os: linux

environment:
  TEST: test

steps:
  - name: test
    image: alpine
    commands:
      - echo $${TEST}

```

Follows syntax as described in [Syntax | Drone](https://docs.drone.io/pipeline/environment/syntax/#per-pipeline)

But running it locally gives following output:

```auto
alex@alex-latop:~/test/drone bug test$ drone exec
[test:0] + echo ${TEST}
[test:1] 

```

Expected: Environment variable is in output

Workaround: set it per step instead of per pipeline

```auto
alex@alex-latop:~/test/drone bug test$ drone --version
drone version 1.2.4

```

---

_[View the full topic](https://drone.discourse.group/t/drone-exec-does-not-support-global-pipeline-variables/7608)._
