1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-03-23 20:32:53 +02:00

9 Commits

Author SHA1 Message Date
qwerty287
f582ad3159
Various enhancements in configuration ()
- backends: move to cli flags instead of os.Getenv
- ssh: support 2fa with key and password
- allow to set grpc jwt secret (solves todo)
- allow to set default and max timeout (solves todo)

Closes https://github.com/woodpecker-ci/woodpecker/issues/896
Closes https://github.com/woodpecker-ci/woodpecker/issues/1131
2023-03-19 20:24:43 +01:00
Sergio Fenoll
f0e518a5a2
Add option to ignore failures on steps ()
closes 
closes  

Adds `ignore_failure` to pipeline steps. When it's set to true,
if the step fails the following steps continue to execute as if no failure had occurred.

---

failure enums idea:
* fail (default) = if other steps run in parallel, wait for them and
then let workflow fail
* cancel = if other steps run in parallel, kill them
* ignore = we mark the step as failed but it wont have any impact
2022-11-15 19:47:27 +01:00
6543
b15ca52a63
Move constrain to only have a single command in backend to run to dedicated backends ()
at the moment we compile a script that we can pipe in as single command
this is because of the constrains the docker backend gives us.

so we move it into the docker backend and eventually get rid of it altogether
2022-10-31 00:26:49 +01:00
Anbraten
3b0263442a
Adding initial version of Kubernetes backend ()
Co-authored-by: laszlocph <laszlo@laszlo.cloud>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Rynoxx <rynoxx@grid-servers.net>
2022-09-05 06:01:14 +02:00
Zav Shotan
acbcc53872
Added support for step errors when executing backend ()
When executing a backend step, in case of failure of the specific step, the run is marked as errored but the step error is missing.

Added:
1. Log for the backend error (without trace)
2. Mark the step as errored with exit code 126 (Could not execute).

Co-authored-by: Zav Shotan <zshotan@bloomberg.net>
Co-authored-by: Anton Bracke <anton@ju60.de>
2022-05-11 13:40:44 +02:00
6543
03638b2934
pipeline backend: remove unused var () 2022-01-09 23:28:41 +01:00
6543
2f91bdd4a0
gofumpt -w -l -extra . () 2022-01-05 21:50:23 +01:00
6543
e072e4cce7
Fix pipeline backend autodetect ()
* refactor:
 - rename IsAvivable -> IsAvailable
 - drop depricated Kill
 - make sure backends implement interface
 - rename backend struct for ide (better info)

* docker backend fix autodetect
2021-11-27 02:29:14 +01:00
Anbraten
c1a8884d62
Add backend selection for agent ()
- add backend selection option
- by default it will auto-detect a backend
2021-11-26 03:34:48 +01:00