81b74025d4
Update Go imports paths ( #4605 )
...
Co-authored-by: Robert Kaussow <mail@thegeeklab.de >
2024-12-22 10:44:34 +01:00
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 and GitHub
29474fc7d9
Split repo trusted setting ( #4025 )
2024-11-01 21:37:31 +01:00
6543 and GitHub
2e29d43b58
Correctly init workflow metadata for cli exec ( #4211 )
2024-10-09 12:17:23 +02:00
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 and GitHub
1a6c8dfec6
Ensure cli exec has by default not the same prefix ( #4132 )
2024-09-24 22:49:36 +02:00
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 and GitHub
32d1ec7cec
Remove all default privileged plugins ( #4053 )
2024-09-02 10:41:20 +02:00
6543 and GitHub
3c8204a0e0
Allow alter trusted clone plugins and filter them via tag ( #4074 )
2024-09-01 20:41:10 +02:00
hg and GitHub
37d1ca8bc1
Read long log lines from file storage correctly ( #4048 )
2024-08-25 22:53:04 +02:00
6543 and GitHub
cd5f6f71a2
Migrate to github.com/urfave/cli/v3 ( #2951 )
2024-07-18 01:26:35 +02:00
qwerty287 and GitHub
a076393561
Exclude dummy backend in production ( #3877 )
2024-07-08 16:29:43 +02:00
Anbraten and GitHub
e118f8d980
Ignore warnings for cli exec ( #3868 )
2024-07-03 16:22:09 +02:00
Anbraten and GitHub
ba858d67cc
Adjust logger types ( #3859 )
2024-07-01 19:03:14 +02:00
daeab8d3c7
Add dummy backend ( #3820 )
...
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com >
2024-06-30 23:06:07 -07:00
Anbraten and GitHub
8b387e73ee
Improve step logging ( #3722 )
2024-06-13 17:18:32 +02:00
6543 and GitHub
42f2734308
cspell lint go code ( #3706 )
2024-05-24 22:35:04 +02:00
Robert Kaussow and GitHub
89e100cfd1
Add godot linter to harmonitze toplevel comments ( #3650 )
2024-05-13 22:58:21 +02:00
manuelluis and GitHub
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 and GitHub
a779eed3df
Enable golangci linter gomnd ( #3171 )
2024-03-15 18:00:25 +01:00
Anbraten and GitHub
6785806873
Fix backend detection ( #3353 )
...
closes #3352
2024-02-09 00:04:43 +01:00
qwerty287 and GitHub
f92f8b17a3
Make agent usable for external backends ( #3270 )
2024-02-08 16:33:22 +01:00
qwerty287 and GitHub
45bf8600ef
Remove multipart logger ( #3200 )
2024-01-14 10:54:02 +01:00
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 and GitHub
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 and GitHub
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
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 and GitHub
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
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
5a7b689e30
Switch to go vanity urls ( #2706 )
...
Co-authored-by: Anbraten <anton@ju60.de >
2023-11-07 08:04:33 +01:00
Anbraten and GitHub
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 and GitHub
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
qwerty287 and GitHub
31240b5771
Remove SSH backend ( #2635 )
...
The SSH backend is, similar to Gogs and Coding for forges, completely
unmaintained and seems unused (it is likely broken but we didn't get any
reports).
Instead, you should directly run the agent on the SSH machine with the
`local` backend.
2023-10-24 01:55:30 +02:00
6543 and GitHub
d253f8cc30
Make sure we dont have hidden options for backend and pipeline compiler ( #2123 )
...
move options based on **os.Getenv** into flags
---------
*Sponsored by Kithara Software GmbH*
2023-08-07 21:13:26 +02:00
6543 and GitHub
b3f65d9d01
pipeline-StepBuilder extract item generation of workflow into own function ( #1950 )
2023-07-08 22:17:09 +02:00
556607b525
Rework log streaming and related functions ( #1802 )
...
closes #1801
closes #1815
closes #1144
closes #983
closes #557
closes #1827
regression of #1791
# TODO
- [x] adjust log model
- [x] add migration for logs
- [x] send log line via grpc using step-id
- [x] save log-line to db
- [x] stream log-lines to UI
- [x] use less structs for log-data
- [x] make web UI work
- [x] display logs loaded from db
- [x] display streaming logs
- [ ] ~~make migration work~~ -> dedicated pull (#1828 )
# TESTED
- [x] new logs are stored in database
- [x] log retrieval via cli (of new logs) works
- [x] log streaming works (tested via curl & webui)
- [x] log retrieval via web (of new logs) works
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-06-06 09:52:08 +02:00
ea895baf83
Resolve built-in variables for global when filter ( #1790 )
...
addresses
https://codeberg.org/Epsilon_02/todo-checker/commit/bd461477bd074ad4a572cdda03c0c3ad119235ec
close #1244 , close #1580
---------
Co-authored-by: Anbraten <anton@ju60.de >
2023-06-05 00:15:07 +02:00
cfdb32ae45
Fully support .yaml ( #1713 )
...
Follow-up to https://github.com/woodpecker-ci/woodpecker/pull/1388
Closes https://github.com/woodpecker-ci/woodpecker/issues/1073
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-04-29 10:12:36 +02:00
Anbraten and GitHub
36b5ae3459
Add env for workflow and step name ( #1693 )
...
closes #1681
2023-04-08 13:15:28 +02:00
qwerty287 and GitHub
f582ad3159
Various enhancements in configuration ( #1645 )
...
- 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
6543 and GitHub
b6399c0a08
Refactor agent: split code in subfunctions ( #1441 )
...
logs of a killed pipeline are stored, with this pull
2022-11-23 15:35:24 +01:00
3372d1a87c
Rename remote to forge ( #1357 )
...
As of #745
Co-authored-by: Anbraten <anton@ju60.de >
2022-11-05 00:35:06 +01:00
36e42914fa
Renamed procs/jobs to steps in code ( #1331 )
...
Renamed `procs` to `steps` in code for the issue #1288
Co-authored-by: Harikesh Prajapati <harikesh.prajapati@druva.com >
Co-authored-by: qwerty287 <ndev@web.de >
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
Co-authored-by: 6543 <6543@obermui.de >
2022-10-28 17:38:53 +02:00
849e05bb8b
Rename build to pipeline in code ( #1224 )
...
Ref: #745
Co-authored-by: Anbraten <anton@ju60.de >
Co-authored-by: 6543 <6543@obermui.de >
2022-10-18 03:24:12 +02:00
Anbraten and GitHub
287800ac62
Add when evaluate filter ( #1213 )
...
closes #312
closes #224
closes #963
Have a look for
https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md
2022-10-06 01:49:23 +02:00
3b0263442a
Adding initial version of Kubernetes backend ( #552 )
...
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
6543 and GitHub
f21d854114
Move away from deprecated go funcs ( #1123 )
2022-08-25 08:39:19 +02:00
d5e31dc187
Provide global environment variables for pipeline substitution ( #968 )
...
* make global environment variables available for pipeline substitution
* lint fixes
* global env support in cli exec; procBuilder tests
* drop GLOBAL_ prefix
* docs
* documentation typo
* Update docs/docs/20-usage/50-environment.md
as suggested by anbraten
Co-authored-by: Anbraten <anton@ju60.de >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Anbraten <anton@ju60.de >
2022-07-30 08:06:03 +02:00