The above will not print the pipeline level variable, but will print the step level variable when ran with drone exec --pipeline python
---
kind: pipeline
type: docker
name: python
environment:
PIPELINE_VAR: yes
steps:
- name: lint_python
image: python
environment:
STEP_VAR: yes
commands:
- echo $PIPELINE_VAR
- echo $STEP_VAR