1
0
Fork 0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-17 22:16:30 +00:00
Commit graph

66 commits

Author SHA1 Message Date
6543
f4d7e9f0ff
Add cli lint option to treat warnings as errors ()
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-11-13 16:28:02 +01:00
qwerty287
29474fc7d9
Split repo trusted setting () 2024-11-01 21:37:31 +01:00
6543
2e29d43b58
Correctly init workflow metadata for cli exec () 2024-10-09 12:17:23 +02:00
6543
fcc57dfc38
Replay pipeline using cli exec by downloading metadata ()
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 () 2024-09-24 22:49:36 +02:00
6543
e89a2f38fd
Make cli exec metadata on pair with build in server generated metadata ()
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 () 2024-09-02 10:41:20 +02:00
6543
3c8204a0e0
Allow alter trusted clone plugins and filter them via tag () 2024-09-01 20:41:10 +02:00
hg
37d1ca8bc1
Read long log lines from file storage correctly () 2024-08-25 22:53:04 +02:00
6543
cd5f6f71a2
Migrate to github.com/urfave/cli/v3 () 2024-07-18 01:26:35 +02:00
qwerty287
a076393561
Exclude dummy backend in production () 2024-07-08 16:29:43 +02:00
Anbraten
e118f8d980
Ignore warnings for cli exec () 2024-07-03 16:22:09 +02:00
Anbraten
ba858d67cc
Adjust logger types () 2024-07-01 19:03:14 +02:00
6543
daeab8d3c7
Add dummy backend ()
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-06-30 23:06:07 -07:00
Anbraten
8b387e73ee
Improve step logging () 2024-06-13 17:18:32 +02:00
6543
42f2734308
cspell lint go code () 2024-05-24 22:35:04 +02:00
Robert Kaussow
89e100cfd1
Add godot linter to harmonitze toplevel comments () 2024-05-13 22:58:21 +02:00
manuelluis
9c684b7a22
Add option to set the local repository path to the cli command exec. ()
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 () 2024-03-15 18:00:25 +01:00
Anbraten
6785806873
Fix backend detection ()
closes 
2024-02-09 00:04:43 +01:00
qwerty287
f92f8b17a3
Make agent usable for external backends () 2024-02-08 16:33:22 +01:00
qwerty287
45bf8600ef
Remove multipart logger () 2024-01-14 10:54:02 +01:00
6543
a5fa810bcc
cli exec: let override existing environment values but print a warning ()
Co-authored-by: Anbraten <anton@ju60.de>
2024-01-12 15:24:30 +01:00
Robert Kaussow
f813badcf9
Enable golangci linter contextcheck ()
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 () 2024-01-09 15:22:59 +01:00
qwerty287
a37af3eeac
Add imports checks to linter ()
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
qwerty287
ff1f51d6a9
Rename engine to backend ()
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 ()
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-karnovgroup
adb2c82790
Update go module path for major version 2 ()
https://go.dev/doc/modules/release-workflow#breaking

Fixes https://github.com/woodpecker-ci/woodpecker/issues/2913 fixes

```
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
6543
5a7b689e30
Switch to go vanity urls ()
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-07 08:04:33 +01:00
Anbraten
a0f2ee9506
Add deprecation warnings () 2023-11-04 15:30:47 +01:00
Anbraten
5ff006614f
Enhance linter and errors ()
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 ()
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 ()
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
d253f8cc30
Make sure we dont have hidden options for backend and pipeline compiler ()
move options based on **os.Getenv** into flags

---------
*Sponsored by Kithara Software GmbH*
2023-08-07 21:13:26 +02:00
6543
b3f65d9d01
pipeline-StepBuilder extract item generation of workflow into own function () 2023-07-08 22:17:09 +02:00
Anbraten
556607b525
Rework log streaming and related functions ()
closes 
closes  
closes 
closes  
closes  
closes 
regression of 

# 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 ()

# 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
6543
ea895baf83
Resolve built-in variables for global when filter ()
addresses
bd461477bd

close  , close 

---------

Co-authored-by: Anbraten <anton@ju60.de>
2023-06-05 00:15:07 +02:00
qwerty287
cfdb32ae45
Fully support .yaml ()
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
36b5ae3459
Add env for workflow and step name ()
closes 
2023-04-08 13:15:28 +02:00
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
6543
b6399c0a08
Refactor agent: split code in subfunctions ()
logs of a killed pipeline are stored, with this pull
2022-11-23 15:35:24 +01:00
qwerty287
3372d1a87c
Rename remote to forge ()
As of 

Co-authored-by: Anbraten <anton@ju60.de>
2022-11-05 00:35:06 +01:00
Harikesh00
36e42914fa
Renamed procs/jobs to steps in code ()
Renamed `procs` to `steps` in code for the issue 

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
qwerty287
849e05bb8b
Rename build to pipeline in code ()
Ref:  

Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: 6543 <6543@obermui.de>
2022-10-18 03:24:12 +02:00
Anbraten
287800ac62
Add when evaluate filter ()
closes  
closes 
closes 

Have a look for

https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md
2022-10-06 01:49:23 +02: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
6543
f21d854114
Move away from deprecated go funcs () 2022-08-25 08:39:19 +02:00
Arno Hautala
d5e31dc187
Provide global environment variables for pipeline substitution ()
* 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
6543
068063655b
Make pipeline runtime log with description ()
* introduce runtime descriptors to pipeline runtime

* nit return orig error at traceStep()

* more logging

* refactor

Co-authored-by: Zav Shotan <zshotan@bloomberg.net>
2022-06-15 18:11:20 +02:00