DRONE_DIR did not show's up

Hello, I have .drone.yml file with this block of code:

---
kind: pipeline
type: exec
name: default

steps:
  - name: show environments
    commands:
      - echo "CI_BUILD_DIR = ${CI_BUILD_DIR}
      - echo "DRONE_DIR = ${DRONE_DIR}"

And when i start commiting, i go on drone server to my recent build, and see this:
Screenshot_20191121_122121

How can i make variable DRONE_DIR to show up my working directory?

What is your Drone version?

I’ve pulled docker container with dron server yesterday by command:
docker pull drone/drone:1
So i can’t tell what version is :slight_smile:

The variable names you are using do not exist and will always be empty. Here is a list of environment variables available to your pipeline: https://docs.drone.io/pipeline/environment/reference/

Thank you for replaying.
Now i understand.
But what if i want to see my directory? And i need to keep my directory in variable DRONE_DIR ? How can i do that?

you can use bash scripting:

---
kind: pipeline
type: exec
name: default

steps:
  - name: show environments
    commands:
    - pwd
    - DRONE_DIR=$(pwd)
    - echo $DRONE_DIR

Thank you very much :slight_smile:
Now it work’s)