DRONE_BUILD_TRIGGER equivalent
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
- Checked that the feature isn't part of the
nextversion already [https://woodpecker-ci.org/versions] - Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Source: woodpecker-ci/woodpecker