Commit Graph
85 Commits
Author SHA1 Message Date
qwerty287 818d66d47a Replace deprecated linter (#4843) 2025-02-14 11:09:07 +02:00
qwerty287andPatrick Schratz fdfabe6368 Support Git as only VCS (#4346)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-12-27 22:49:19 +01: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
6543 b59533a06f cli exec: rename "--pipeline-files" to "--pipeline-changed-files" (#4142) 2024-09-24 20:29:19 +02:00
6543 352201dbbd cli exec: fix flag type and remove uneffective ones (#4129) 2024-09-24 19:08:18 +02:00
6543 4683968925 Fix regression of #4119 (#4121) 2024-09-17 07:46:31 +03: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
6543andqwerty287 38ed7f9efd Remove some ci environment variables (#3846)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-09-08 08:59:58 +03: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 ceb14cadc5 Fix deploy task env (#3878) 2024-07-07 13:43:07 +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
Fernando Barbosaandqwerty287 e6bda2c2b3 Support github deploy task (#3512)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-05-02 18:56:19 +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
qwerty287 342b25826c Rename link to url (#2812)
As of https://woodpecker-ci.org/docs/next/usage/terminiology#conventions
2023-11-14 17:12:12 +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
qwerty287 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
Robert Kaussow 008a8c6acb Fix usage description for backend-http-proxy flag (#2250) 2023-08-19 16:27:21 +02:00
qwerty287 4d83ea0de8 Add SSH clone URL env var (#2198)
to improve https://github.com/woodpecker-ci/plugin-git/pull/75
2023-08-12 17:39:13 +02:00
6543 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 a83b0fcfd3 Drop deprecated built-in environment variables (#2048)
Drop:
 - `CI_BUILD_*`
 - `CI_PREV_BUILD_*`
 - `CI_JOB_*`
 - `*_LINK`
 - `CI_SYSTEM_ARCH`
 - `CI_REPO_REMOTE`
2023-07-28 14:58:20 +02:00
6543 b3f65d9d01 pipeline-StepBuilder extract item generation of workflow into own function (#1950) 2023-07-08 22:17:09 +02:00
Anbratenand6543 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