#7074·woodpecker

DRONE_BUILD_TRIGGER equivalent

Author: wolffbergCreated Aug 26, 2026Updated Sep 23, 2026

Clear and concise description of the problem

Drone have a DRONE_BUILD_TRIGGER environment variable that contains either the user triggering the pipeline or @hook for webhooks.

We previously used this to track who made changes across our services. E.g. a @hook deploying to dev/test environments and what user deployed to prod. This is especially valuable for environments where scheduled/manual release cycles are still in use and downstream services handle change creation or similar otherwise manual processes.

Suggested solution

Implement CI_PIPELINE_TRIGGER or a environment variable under a different name.

Alternative

No response

Additional context

When the Deploy button is used, the resulting deployment pipeline seems to inherit the CI_PIPELINE_AUTHOR from the previous pipeline. Not sure if this is intended, a bug or isolated to how we do things.

Validations

Source: woodpecker-ci/woodpecker