Commit Graph
83 Commits
Author SHA1 Message Date
6543 d479dd452d Make cli exec auto detect single workflow test in multi workflow setup (#6715) 2026-06-14 09:22:03 +02:00
6543 c61d7403b2 Migrate gopkg.in/yaml.v3 usages to go.yaml.in/yaml/v4 (#6651) 2026-05-28 15:08:09 +02:00
qwerty287 98faae778c Use Gitlab username (#6653) 2026-05-27 14:16:25 +02:00
6543 0fe5bc1b44 Use refactored pipeline builder in cli exec (#6453)
based on #3967
2026-05-26 23:04:41 +02:00
6543 11f74a6291 format with gofumpt v0.10.0 (#6573) 2026-05-14 14:02:43 +02:00
6543 60df1c618d Fix workflow hang on services (#6507)
because we now wait for all steps to trace status back before we return, the defere did not tear down services anymore ...

... we now explicit tear down services and steps after all stages have executed.

Also adds tests to check for that and update the dummy backend to fullfill the interface contract of killing all "running" steps with DestroyWorkflow.
2026-04-27 09:11:33 +02:00
6543 4dd3be7f96 Move wait for log uploads logic out of logger and tracer into pipeline runtime (#6471) 2026-04-25 16:36:26 +02:00
qwerty287and6543 79cc07265e Unify import aliases (#6328)
Co-authored-by: 6543 <6543@obermui.de>
2026-03-28 15:45:23 +01:00
6543 09327abd03 Creating new engine runtime now requires backend as argument (#6268) 2026-03-20 13:44:24 +01:00
6543 57ac1cb6f5 refactor: use upstream slices.Concat and remove utils.MergeSlices (#6185)
a small refactor since the upstream core lib change is now long merged and adopted
2026-03-02 14:30:37 +01:00
6543 a63b93f5ee Refactor pipeline engine (#6073)
restructure pipeline/*.go to use submodules

<!-- https://claude.ai/chat/1b8965d7-5bca-42c7-86b4-48c2d645c362 -->

- pipeline/error.go -> pipeline/errors/...
- pipeline/pipeline.go#Runtime -> pipeline/runtime/runtime.go
- pipeline/pipeline.go#execAll -> pipeline/runtime/executor.go
- pipeline/shutdown.go -> pipeline/runtime/shutdown.go
- pipeline/logger.go ->pipeline/logging
- pipeline/tracer.go -> pipeline/tracing
- pipeline/pipeline.go#State -> state/state.go
2026-02-13 11:56:43 +01:00
6543 3786077c07 Update Architecture: move pipeline/rpc => rpc & server/{grpc => rpc} (#6012) 2026-01-26 21:25:38 +01:00
6543 393a598212 Make local backend work with cli exec (#4102) 2025-10-27 13:12:26 +01:00
qwerty287 47a00051e6 Allow to get secrets from file (#5509) 2025-09-14 12:26:56 +02:00
qwerty287andRobert Kaussow f240894cac Print execution errors (#5448)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-08-21 14:34:50 +02:00
qwerty287 12cd608150 Support secrets in cli exec (#5374) 2025-07-31 07:13:07 +03:00
qwerty287andRobert Kaussow 81b74025d4 Update Go imports paths (#4605)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2024-12-22 10:44:34 +01:00
6543andRobert Kaussow f4d7e9f0ff Add cli lint option to treat warnings as errors (#4373)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-11-13 16:28:02 +01:00
qwerty287 29474fc7d9 Split repo trusted setting (#4025) 2024-11-01 21:37:31 +01:00
6543 2e29d43b58 Correctly init workflow metadata for cli exec (#4211) 2024-10-09 12:17:23 +02:00
6543andAnbraten fcc57dfc38 Replay pipeline using cli exec by downloading metadata (#4103)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-09-25 07:20:51 +02:00
6543 1a6c8dfec6 Ensure cli exec has by default not the same prefix (#4132) 2024-09-24 22:49:36 +02:00
6543andqwerty287 e89a2f38fd Make cli exec metadata on pair with build in server generated metadata (#4119)
remove some old environment and add all missing options to set the whole build-in environment on `cli exec` via flags


---
*Sponsored by Kithara Software GmbH*

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-09-16 22:03:24 +02:00
6543 32d1ec7cec Remove all default privileged plugins (#4053) 2024-09-02 10:41:20 +02:00
6543 3c8204a0e0 Allow alter trusted clone plugins and filter them via tag (#4074) 2024-09-01 20:41:10 +02:00
hg 37d1ca8bc1 Read long log lines from file storage correctly (#4048) 2024-08-25 22:53:04 +02:00
6543 cd5f6f71a2 Migrate to github.com/urfave/cli/v3 (#2951) 2024-07-18 01:26:35 +02:00
qwerty287 a076393561 Exclude dummy backend in production (#3877) 2024-07-08 16:29:43 +02:00
Anbraten e118f8d980 Ignore warnings for cli exec (#3868) 2024-07-03 16:22:09 +02:00
Anbraten ba858d67cc Adjust logger types (#3859) 2024-07-01 19:03:14 +02:00
6543andAnbraten daeab8d3c7 Add dummy backend (#3820)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-06-30 23:06:07 -07:00
Anbraten 8b387e73ee Improve step logging (#3722) 2024-06-13 17:18:32 +02:00
6543 42f2734308 cspell lint go code (#3706) 2024-05-24 22:35:04 +02:00
Robert Kaussow 89e100cfd1 Add godot linter to harmonitze toplevel comments (#3650) 2024-05-13 22:58:21 +02:00
manuelluis 9c684b7a22 Add option to set the local repository path to the cli command exec. (#3524)
The cli command exec not handle in a coherent way the repository path
when a directory or filename is given for the pipeline.

` woodpecker-cli exec [command options] [path/to/.woodpecker.yaml]`

If the path to the pipeline is a file in the `.woodpecker` directory,
for example: `.woodpecker/pipeline.yaml`,
the repository path will be: `.woodpecker`

If the path to the pipeline yaml is a directory with more than one
level, for example `ci/woodpecker/`,
the repository path will be:  `ci`

In order not to break the old behavior we added a new option to put the
root directory of the repository:
~~~
woodpecker-cli exec --local --repo-path . --pipeline-event manual
.woodpecker/build.yml
~~~
2024-03-21 00:19:48 +01:00
Robert Kaussow a779eed3df Enable golangci linter gomnd (#3171) 2024-03-15 18:00:25 +01:00
Anbraten 6785806873 Fix backend detection (#3353)
closes #3352
2024-02-09 00:04:43 +01:00
qwerty287 f92f8b17a3 Make agent usable for external backends (#3270) 2024-02-08 16:33:22 +01:00
qwerty287 45bf8600ef Remove multipart logger (#3200) 2024-01-14 10:54:02 +01:00
6543andAnbraten a5fa810bcc cli exec: let override existing environment values but print a warning (#3140)
Co-authored-by: Anbraten <anton@ju60.de>
2024-01-12 15:24:30 +01:00
Robert Kaussow f813badcf9 Enable golangci linter contextcheck (#3170)
Split out from https://github.com/woodpecker-ci/woodpecker/pull/2960
2024-01-11 22:15:15 +01:00
6543 cd59a85230 Use name in backend types instead of alias (#3142) 2024-01-09 15:22:59 +01:00
a37af3eeac Add imports checks to linter (#3056)
supersedes https://github.com/woodpecker-ci/woodpecker/pull/874

---------

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-29 21:19:42 +01:00
qwerty287and6543 ff1f51d6a9 Rename engine to backend (#2950)
rename based on https://woodpecker-ci.org/docs/usage/terminiology

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-12-14 19:20:47 +01:00
qwerty287 a796885ad4 Fix flags added multiple times (#2914)
Closes https://github.com/woodpecker-ci/woodpecker/issues/2912

Global flags should not be added to the commands/subscommands, only
globally.
2023-12-08 10:36:53 +02:00
runephilosof-karnovgroupandqwerty287 adb2c82790 Update go module path for major version 2 (#2905)
https://go.dev/doc/modules/release-workflow#breaking

Fixes https://github.com/woodpecker-ci/woodpecker/issues/2913 fixes
#2654
```
runephilosof@fedora:~/code/platform-woodpecker/woodpecker-repo-configurator (master)$ go get go.woodpecker-ci.org/woodpecker@v2.0.0
go: go.woodpecker-ci.org/woodpecker@v2.0.0: invalid version: module contains a go.mod file, so module path must match major version ("go.woodpecker-ci.org/woodpecker/v2")
```

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-08 08:15:08 +01:00
6543andAnbraten 5a7b689e30 Switch to go vanity urls (#2706)
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-07 08:04:33 +01:00
Anbraten a0f2ee9506 Add deprecation warnings (#2725) 2023-11-04 15:30:47 +01:00
5ff006614f Enhance linter and errors (#1572)
Co-authored-by: 6543 <m.huber@kithara.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-11-03 11:44:03 +01:00
6543 ebe0307c6b Let the backend engine report the current platform (#2688)
if you run woodpecker-agent on windows and connect it to an docker
daemon, there could be two different platforms possible, as you can
switch from linux to windows mode and visa versa


---
*Sponsored by Kithara Software GmbH*
2023-11-01 15:38:37 +01:00