Now that Drone 1.0.0 is released I've tried to port my 0.8 configs to it. I've noticed that DRONE_JOB_NUMBER is no longer available. I think a good replacement would be DRONE_STAGE_NAME or DRONE_STAGE_NUMBER (see https://github.com/drone/drone/blob/master/operator/runner/env.go#L65). But when I'm using that via
cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_STAGE_NAME ]
I'm getting:
Warning! Environment variable 'DRONE_STAGE_NAME' does not contain a value, it will be ignored!
Any idea why that variable doesn't get passed to the plugin?
Now that Drone 1.0.0 is released I've tried to port my 0.8 configs to it. I've noticed that
DRONE_JOB_NUMBERis no longer available. I think a good replacement would beDRONE_STAGE_NAMEorDRONE_STAGE_NUMBER(see https://github.com/drone/drone/blob/master/operator/runner/env.go#L65). But when I'm using that viaI'm getting:
Any idea why that variable doesn't get passed to the plugin?