mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 21:22:34 +00:00
Delete old fallbacks and compatible stuff (#791)
Drop ... * ... DRONE_ and deprecated pipeline environment vars * ... deprecated sqlite3 file path
This commit is contained in:
@@ -206,13 +206,6 @@ func (r *Runtime) execAll(steps []*backend.Step) <-chan error {
|
||||
|
||||
// Executes the step and returns the state and error.
|
||||
func (r *Runtime) exec(step *backend.Step) (*backend.State, error) {
|
||||
// TODO: using DRONE_ will be deprecated with 0.15.0. remove fallback with following release
|
||||
for key, value := range step.Environment {
|
||||
if strings.HasPrefix(key, "CI_") {
|
||||
step.Environment[strings.Replace(key, "CI_", "DRONE_", 1)] = value
|
||||
}
|
||||
}
|
||||
|
||||
if err := r.engine.Exec(r.ctx, step); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user