mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 08:27:02 +00:00
Fix wrong drone env vars (#1419)
Provide up to date drone compatibility environment variables to each step execution. closes #1416 Before a step is executed, some environemnt variables are updated. This ensures, that the updated environment variables are copied to their corresponding `DRONE_` environemt variables. Side effect is that the `DRONE_` environemnt variables are no longer available in the metadata which should not harm as they are not used inside woodpecker.
This commit is contained in:
@@ -316,6 +316,7 @@ func (r *Runner) Run(ctx context.Context) error {
|
||||
state.Pipeline.Step.Environment["CI_BUILD_STATUS"] = "failure"
|
||||
state.Pipeline.Step.Environment["CI_JOB_STATUS"] = "failure"
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user