Commit graph

49 commits

Author SHA1 Message Date
6543 068063655b
Make pipeline runtime log with description (#970)
* 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
Anbraten e79ad00826
Add agent tagging / filtering for pipelines (#902)
Officially support labels for pipelines and agents to improve pipeline picking. 

* add pipeline labels
* update, improve docs  and add migration
* update proto file

---
closes #304 & #860
2022-05-31 01:12:18 +02:00
Zav Shotan acbcc53872
Added support for step errors when executing backend (#817)
When executing a backend step, in case of failure of the specific step, the run is marked as errored but the step error is missing.

Added:
1. Log for the backend error (without trace)
2. Mark the step as errored with exit code 126 (Could not execute).

Co-authored-by: Zav Shotan <zshotan@bloomberg.net>
Co-authored-by: Anton Bracke <anton@ju60.de>
2022-05-11 13:40:44 +02:00
Anbraten c1a8884d62
Add backend selection for agent (#463)
- add backend selection option
- by default it will auto-detect a backend
2021-11-26 03:34:48 +01:00
Anbraten 063d0bb32a
Replace DRONE_ with CI_ variables in pipeline steps (#427)
Dropped support for `DRONE_*` environment variables in pipeline steps. Pipeline meta-data can be accessed with `CI_*` variables.
  - `CI_*` prefix replaces `DRONE_*`
  - `CI` value is now `woodpecker`
  - `DRONE=true` has been removed
2021-11-25 20:43:31 +01:00
Lukas 116c310820
Add linter misspell (#530)
* Add linter misspell

* Fix spelling

Co-authored-by: Anbraten <anton@ju60.de>
2021-11-24 02:01:12 +01:00
Lukas 25bf91bd37
Add linter whitespace (#531) 2021-11-24 01:31:11 +01:00
6543 fe31fb1e06
Drop error only on purpose or else report back or log (#514)
- Remove Deadcode
- Simplify Code
- Drop error only on purpose
2021-11-23 15:36:52 +01:00
6543 86bb8f195c
format do 'simplify' and check via CI (#509)
* `make format` simplify code now

* code format

* check simplified via linter
2021-11-14 22:33:45 +01:00
6543 ca8e215cfa
Migrate to Xorm (#474)
close #234

* Migrate store
* Migrate tests
* Rewrite migrations
* Init fresh DB in on step
* Rm old stuff (meddler, sql files, dead code, ...)
2021-11-13 20:18:06 +01:00
John Olheiser 4276a04f0c
Move entirely to zerolog (#426)
Completely switch to zerolog

(Remove usage of logrus and std logger)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
2021-10-12 09:25:13 +02:00
Jacob Floyd e34daae0cf
Move cncd/pipeline/pipeline/ to pipeline/ (#347)
* Refactor: move cncd/pipeline/ to pipeline/

* Refactor: move pipeline/pipeline/ to pipeline/
2021-09-24 13:18:34 +02:00
Jacob Floyd bfb9af121c
Create agent/ package for backend agnostic logic (#338)
* Refactor: Move agent stats structs to agent/

Based in part on changes by laszlocph (kube branch):
7f4a0c8c12 Factor into Runner
f7fe9edd0b Using Runner in server

* Refactor: Add Runner constructor with counter field

Based in part on changes by laszlocph (kube branch):
7f4a0c8c12 Factor into Runner
f7fe9edd0b Using Runner in server

* Refactor: Move Runner to agent/ package

Based in part on changes by laszlocph (kube branch):
7f4a0c8c12 Factor into Runner
f7fe9edd0b Using Runner in server

* Refactor: pass pipeline.backend.Engine into agent.Runner

Based in part on changes by laszlocph (kube branch):
7f4a0c8 Factor into Runner
f7fe9ed Using Runner in server

* Use well-known function signature for WriteTo

* Rename stats.go -> state.go

Co-authored-by: Anbraten <anton@ju60.de>
2021-09-23 16:58:12 +02:00
Brad Rydzewski a95b118cb3 removed legacy code, updated cli 2017-03-16 18:14:02 +08:00
Brad Rydzewski def995b164 use yaml parameter to restrict local plugin execution 2017-01-20 14:16:15 +07:00
Brad Rydzewski 1f0261a72a promote secret interpolation 2017-01-20 11:12:30 +07:00
Brad Rydzewski f51a9aed84 update secret interpolation 2017-01-18 23:43:40 +07:00
Brad Rydzewski cbeac5e671 put env interpolation behind a flag 2017-01-18 23:12:11 +07:00
Brad Rydzewski aa48f1f771 quote newlines when interpolating 2017-01-18 22:59:27 +07:00
Brad Rydzewski a03e962c2a move to envsubst package 2017-01-18 22:03:38 +07:00
Bo-Yi Wu d1ac862623 feat: support multiple yaml transform extensions 2017-01-13 15:53:13 +08:00
Brad Rydzewski 846a906834 initial support yaml transform extensions 2017-01-12 09:42:43 +04:00
Orlando Del Aguila abc8902bee adding refspec to agent env 2016-12-07 14:32:42 -06:00
Don 36e528e365 Modify return to follow Golang conventions 2016-11-17 10:09:58 -08:00
Don 9781e160a4 Hide secrets 2016-11-16 18:33:48 -08:00
Don 9eee1c158a Revert "Implement secrets concealer in build logs"
This reverts commit 5377c62844.
2016-11-16 17:08:25 -08:00
Vaidas Jablonskis 5377c62844 Implement secrets concealer in build logs 2016-10-25 21:23:37 +01:00
Don 3968195168 Implement skip verify for secrets 2016-10-24 10:55:54 -07:00
Brad Rydzewski 76b0286b68 update agent logs 2016-09-29 17:45:13 -04:00
Brad Rydzewski 9f937e2425 removed default image namespacing 2016-09-27 20:40:59 -05:00
Brad Rydzewski 778971eb68 removed unused packages 2016-09-27 20:30:28 -05:00
Brad Rydzewski 0b2f1c8e51 integrates drone/mq into agent 2016-09-26 03:29:05 -05:00
Brad Rydzewski a3303d5f5d Merge pull request #1771 from bradrydzewski/master
choose ambassador by platform
2016-08-30 10:02:19 -07:00
Brad Rydzewski 0f7253febb choose ambassador by platform 2016-08-25 11:35:28 -07:00
Fabio Rapposelli fc74ec7f36
Expose job properties in environment 2016-07-29 08:52:30 +02:00
Brad Rydzewski 6d2c525064 display error when commands for docker plugin 2016-07-22 10:14:38 -07:00
Joachim Hill-Grannec 2ce566483b Handling some of the error in bitbucksetserver
Fixed returning the http(s) version of the clone link which had the username in it however should not to work with netrc
Quick typo fix
2016-06-11 18:42:55 -07:00
Joachim Hill-Grannec 7e5a6ec9fb Allowing for services with no environment defined. 2016-06-10 20:46:13 -07:00
Joachim Hill-Grannec fd2b4b71ba update to initialize the Environment map 2016-06-10 17:02:00 -07:00
Brad Rydzewski 9ab3ccccff write internal errors only to database [CI SKIP] 2016-06-06 23:45:58 -07:00
Brad Rydzewski d01756ed80 remove port when creating default workspace path 2016-06-06 23:38:22 -07:00
Brad Rydzewski 108184daeb Update agent.go 2016-06-06 23:25:57 -07:00
Brad Rydzewski 5456f13e9c ability to stream logs using websockets 2016-05-23 14:35:58 -07:00
Brad Rydzewski 5c9a22a58b fix issue with incorrect build status environment variable 2016-05-13 09:56:58 -07:00
Brad Rydzewski 56b6eb1b0c ability to limit log size, defaults to 5mb 2016-05-12 13:24:51 -07:00
Brad Rydzewski 2da1728c70 enabled "change" status 2016-05-11 21:28:49 -07:00
Brad Rydzewski c76dd06b27 removed insanely overly complex build runner, parser, compiler 2016-05-10 17:07:51 -07:00
Brad Rydzewski 850c00dbba drone exec and drone agent now share code 2016-05-10 17:03:24 -07:00
Brad Rydzewski 8f467ff5ca abstracted build execution to /agent package and hooked up to drone exec 2016-05-10 15:04:19 -07:00