woodpecker/pipeline
Alexander Matyushentsev ee969979c6
fix: backend auto-detection should be consistent (#1618)
Closes https://github.com/woodpecker-ci/woodpecker/issues/1617

The `woodpecker exec` auto-detects the backend by iterating over a map
of backends. However, since Go 1 the runtime randomizes map iteration
order, so a random backend might be chosen during each execution.

PR changes to auto-detection to iterate over the backends list with
predefined priority: `docker`, `local`, `ssh`, `kubernetes`.

---------

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
2023-03-13 09:07:41 +02:00
..
backend fix: backend auto-detection should be consistent (#1618) 2023-03-13 09:07:41 +02:00
frontend Use modern error handling and enforce it via lint (#1327) 2023-02-02 00:08:02 +01:00
multipart Dedup code and migrate away from deprecated funcs (#1141) 2022-08-30 01:14:07 +02:00
rpc Store an agents list and add agent heartbeats (#1189) 2023-01-28 14:13:04 +01:00
samples Replace DRONE_ with CI_ variables in pipeline steps (#427) 2021-11-25 20:43:31 +01:00
schema Add option to ignore failures on steps (#1219) 2022-11-15 19:47:27 +01:00
shared Fix multiline secrets replacer (#700) 2022-01-16 22:57:37 +01:00
drone_compatibility.go Fix wrong drone env vars (#1419) 2022-11-22 23:57:12 +01:00
error.go Fix invalid service names for Kubernetes (#1234) 2022-10-05 13:39:48 +02:00
error_test.go Move cncd/pipeline/pipeline/ to pipeline/ (#347) 2021-09-24 13:18:34 +02:00
logger.go Renamed procs/jobs to steps in code (#1331) 2022-10-28 17:38:53 +02:00
option.go Make pipeline runtime log with description (#970) 2022-06-15 18:11:20 +02:00
option_test.go Move cncd/pipeline/pipeline/ to pipeline/ (#347) 2021-09-24 13:18:34 +02:00
pipeline.go Refactor agent: split code in subfunctions (#1441) 2022-11-23 15:35:24 +01:00
stepBuilder.go Split and refactor (#1394) 2022-11-06 12:44:04 +01:00
stepBuilder_test.go Split and refactor (#1394) 2022-11-06 12:44:04 +01:00
tracer.go Fix wrong drone env vars (#1419) 2022-11-22 23:57:12 +01:00