Commit Graph
203 Commits
Author SHA1 Message Date
e229a8e633 Add cli output handlers (#3660)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-05-02 08:43:46 +02:00
AnbratenandGitHub dbd91d3884 Cleanup api docs and ts api-client options (#3663) 2024-05-01 11:50:41 +02:00
b02f2df89e CLI: remove step logs (#3458)
On top of #3451, addresses [PR
note](https://github.com/woodpecker-ci/woodpecker/pull/3451#discussion_r1505438144)

related to #1100

Not tested.

---------

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2024-04-22 19:11:59 +02:00
AnbratenandGitHub 0aee9d7342 fix cli config loading and correct comment (#3618)
closes #3553


https://github.com/woodpecker-ci/woodpecker/pull/3518#discussion_r1542662674
2024-04-15 21:18:02 +02:00
00f0fcd416 Rework addons (use rpc) (#3268)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-04-15 10:04:21 +02:00
AnbratenandGitHub c2a8464512 Fix cli version comparison and improve setup command (#3518) 2024-03-28 10:36:39 +01:00
manuelluisandGitHub 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
manuelluisandGitHub 00b1651f47 Exclude setup from cli command exec. (#3523)
The woodpecker-cli exec command only execute local pipelines so setup
for remote server is not needed.
2024-03-20 17:45:46 +01:00
b6b2ab0901 Fix skip setup for some general cli commands (#3498)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-03-18 13:08:05 +01:00
Robert KaussowandGitHub a779eed3df Enable golangci linter gomnd (#3171) 2024-03-15 18:00:25 +01:00
03c891eb93 Cli setup command (#3384)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-03-13 11:08:22 +01:00
AnbratenandGitHub cee890d359 Fix disable update check flag name (#3412) 2024-02-19 10:04:55 +01:00
AnbratenandGitHub 30b92edc99 Cli updater (#3382) 2024-02-19 09:16:27 +01:00
AnbratenandGitHub 6785806873 Fix backend detection (#3353)
closes #3352
2024-02-09 00:04:43 +01:00
qwerty287andGitHub f92f8b17a3 Make agent usable for external backends (#3270) 2024-02-08 16:33:22 +01:00
9df572ef31 Add release event trigger (#3226)
Supersedes #764 

Bitbucket does not support release webhooks.

---------

Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-01-30 17:39:00 +01:00
qwerty287andGitHub 001b5639a6 Use assert for test (#3201)
instead of `if`s
2024-01-14 19:33:58 +01:00
qwerty287andGitHub b9f6f3f9fb Replace goimports with gci (#3202)
`gci` seems to be much more strict.
2024-01-14 18:22:06 +01:00
qwerty287andGitHub 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 KaussowandGitHub 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
b0a2b1cf2d Lowercase all log strings (#3173)
from #3161

---------

Co-authored-by: 6543 <6543@obermui.de>
2024-01-11 19:17:07 +01:00
Robert KaussowandGitHub 7756c60a33 Enable golangci linter stylecheck (#3167)
This PR only fixes error string formatting, log message strings are
still mixed upper/lowercase (see
https://github.com/woodpecker-ci/woodpecker/pull/3161#issuecomment-1885140649)
and I'm not aware of a linter to enforce it.
2024-01-10 22:56:42 +01:00
qwerty287andGitHub 00df53e941 Clean up logging (#3161)
- use `Err` method instead of format strings
- use `Msg` if no format string is used
2024-01-10 20:57:12 +01:00
qwerty287andGitHub 12c40eb957 Enable gocritic and don't ignore globally (#3159)
Use `nolint` directives instead.

From #2960
2024-01-10 15:34:44 +01:00
6543andGitHub cd59a85230 Use name in backend types instead of alias (#3142) 2024-01-09 15:22:59 +01:00
qwerty287andGitHub 0c05c38ddd Move cmd/common to shared (#3092) 2023-12-31 23:29:56 +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
2b1e5f35de Add depends_on support for steps (#2771)
Co-authored-by: 6543 <6543@obermui.de>
2023-12-24 12:14:30 +01:00
cd9d425a0d Fix cli lint throwing error on warnings (#2995)
split out from  #2771

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-12-23 00:34:17 +02: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
qwerty287andGitHub 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
qwerty287andGitHub 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
qwerty287andGitHub 451b71dcd4 Revert to singular CLI args (#2820)
revert parts of https://github.com/woodpecker-ci/woodpecker/pull/2213
2023-11-14 17:03:41 +01:00
5a7b689e30 Switch to go vanity urls (#2706)
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-07 08:04:33 +01:00
AnbratenandGitHub 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
runephilosof-karnovgroupandGitHub dbed835b6d Use int64 for IDs in woodpecker client lib (#2703)
Switch from int to int64 for IDs
2023-11-02 12:21:11 +01:00
6543andGitHub 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
856b2ef8c7 pre-commit fixes (#2669)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
2023-10-31 09:14:09 +01:00
AnbratenandGitHub f44aa8a6fd Remove plugin-only option from secrets (#2213) 2023-10-24 20:38:47 +02:00
qwerty287andGitHub d5e68efc95 Do not print log level on CLI (#2638)
if it's not in debug log level

closes https://github.com/woodpecker-ci/woodpecker/issues/1764
2023-10-24 12:23:42 +02:00
qwerty287andGitHub 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
qwerty287andGitHub ec3a3cc9e1 Remove deprecated build command (#2602) 2023-10-19 18:05:41 +02:00
Robert KaussowandGitHub 008a8c6acb Fix usage description for backend-http-proxy flag (#2250) 2023-08-19 16:27:21 +02:00
qwerty287andGitHub 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
qwerty287andGitHub 8cdac56d8f Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
6543andGitHub 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
6543andGitHub 3d4758578a Add opt save global log output to file (#2115)
close  #1933

---------
*Sponsored by Kithara Software GmbH*
2023-08-07 20:47:30 +02:00