Skip to content

Figure out replacement for DRONE_JOB_NUMBER for Drone 1.0.0 #23

Description

@jhasse

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions