6543
7e3bf2202c
Return 404 if pipeline not exist and handle 404 errors in WebUI ( #1627 )
2023-03-17 02:10:51 +01:00
Anbraten
1947408eba
Fix panel height ( #1629 )
2023-03-16 13:00:41 +01:00
6543
9c8c610cd4
Changelog v0.15.7 ( #1622 ) ( #1623 )
...
Frontport #1622
2023-03-14 15:56:45 +01:00
Hayden
1c1c08831f
docs: update docs to include plugin repositories ( #1596 )
...
Closes #1536
Co-authored-by: 6543 <6543@obermui.de>
2023-03-14 03:42:53 +01:00
Hayden
c60c59bd65
fix: apply permissions when flatPermissions enabled ( #1603 )
...
Closes #1582
When `WOODPECKER_FLAT_PERMISSIONS=true` workaround is applied all
permissions are set to false (default) and query never returns any
matches.
This fixes it by always assigning Pull/Push/Admin to true when flatPermissions is enabled.
2023-03-14 03:42:11 +01:00
Alexander Matyushentsev
ee969979c6
fix: backend auto-detection should be consistent ( #1618 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1617
The `woodpecker exec` auto-detects the backend by iterating over a map
of backends. However, since Go 1 the runtime randomizes map iteration
order, so a random backend might be chosen during each execution.
PR changes to auto-detection to iterate over the backends list with
predefined priority: `docker`, `local`, `ssh`, `kubernetes`.
---------
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
2023-03-13 09:07:41 +02:00
Alexander Matyushentsev
5e1171d7a7
fix: docker backend should not close 'engine.Tail' result ( #1616 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1615
The error described in
https://github.com/woodpecker-ci/woodpecker/issues/1615 is happening
because `Tail` method of the docker backend closes the instance of
`io.ReadCloser` it returns in `defer` function. As a result anything
that try to read data returned by `Tail` method eventually will attempt
to read from closes reader and get an error:
2171212c5a/pipeline/backend/docker/docker.go (L229)
The fix is just don't close returned reader and let the consumer of
`Tail` method do it. Good thing is that `Tail` is used only in one place
and reader is correctly closed:
2171212c5a/pipeline/pipeline.go (L231-L237)
Example of `woodpecker exec` output using pipeline from
https://github.com/woodpecker-ci/woodpecker/issues/1615 with the fix:
```
woodpecker exec .woodpecker.yaml
[step1:L0:0s] + echo step1
[step1:L1:0s] step1
[step2:L0:0s] + echo step2
[step2:L1:0s] step2
```
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2023-03-12 16:01:09 +01:00
Alexander Matyushentsev
9288670c61
feat: expose unprotected metrics endpoint ( #1614 )
...
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-12 09:41:10 +01:00
Lukas
2171212c5a
Fix gitea development setup ( #1613 )
2023-03-11 07:08:00 +01:00
Lukasz
dc90f97524
Persist DepStatus
of tasks ( #1610 )
2023-03-11 01:58:28 +01:00
Lauris BH
f1f722645c
Update dependencies golang/x libs ( #1612 )
2023-03-10 19:23:07 +01:00
Weblate
97605cfb46
Translated using Weblate (Finnish)
...
Currently translated at 4.5% (12 of 263 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (263 of 263 strings)
Translated using Weblate (Indonesian)
Currently translated at 100.0% (263 of 263 strings)
Translated using Weblate (French)
Currently translated at 100.0% (263 of 263 strings)
Translated using Weblate (Spanish)
Currently translated at 23.5% (62 of 263 strings)
Translated using Weblate (German)
Currently translated at 82.1% (216 of 263 strings)
Co-authored-by: Leonid Maslakov <root@lcomrade.su>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Co-authored-by: Skyler Mäntysaari <sm+woodpecker-ci@skym.fi>
Co-authored-by: Yoel nunez <y.nunez@floms.com>
Co-authored-by: qwerty287 <ndev@web.de>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/es/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fi/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
Translation: Woodpecker CI/UI
2023-03-08 06:30:13 +00:00
Weblate
2697663180
Added translation using Weblate (Finnish)
...
Co-authored-by: Skyler Mäntysaari <sm+woodpecker-ci@skym.fi>
2023-03-06 08:01:25 +00:00
Weblate
94a972ef3b
Translated using Weblate (Russian)
...
Currently translated at 100.0% (262 of 262 strings)
Translated using Weblate (Indonesian)
Currently translated at 100.0% (262 of 262 strings)
Translated using Weblate (French)
Currently translated at 100.0% (262 of 262 strings)
Co-authored-by: Leonid Maslakov <root@lcomrade.su>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
Translation: Woodpecker CI/UI
2023-03-06 06:33:09 +00:00
Hayden
72784bc11a
Add note about docker image cleanup ( #1597 )
...
Closes #1532
Adds notes about images not being cleaned up by wood-pecker and provides
examples on how you can automate the cleanup. Also provides a warning
that these are destructive actions.
<img width="1020" alt="CleanShot 2023-03-03 at 09 36 35@2x"
src="https://user-images.githubusercontent.com/64056131/222800658-f610d488-f8ea-4aca-8ed0-f26e44be1884.png ">
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-06 07:33:02 +01:00
Alexander Matyushentsev
d35ab57f80
Add confirm for secret deletion ( #1604 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/1483
PR adds a confirmation dialog that warns user before deleting a secret.
https://user-images.githubusercontent.com/426437/222985225-9e14ddac-6c5a-4aed-ac89-cc6562180ac6.mov
Using just basic
[window.Confirm](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm )
since it is used in
[other](https://github.com/search?q=repo%3Awoodpecker-ci%2Fwoodpecker+confirm%28&type=code )
places. Any objections to switch to proper dialog component in a
separate PR?
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
2023-03-06 07:07:40 +01:00
Hayden
73c47bd2ff
Add collapsable support to panel elements ( #1601 )
...
Closes #1312
Updates the `Panel` component to support collapsing
## Example
https://user-images.githubusercontent.com/64056131/222880570-6611fdd7-4577-4ed5-9798-fce829a4a752.mp4
---------
Co-authored-by: Anbraten <anton@ju60.de>
2023-03-05 07:50:04 +01:00
Hayden
0148151f3d
Add cancel button on secrets tab ( #1599 )
2023-03-04 13:03:35 +01:00
Hayden
a2f226f7f9
fix: return 404 on badge request for inactive repo ( #1600 )
...
closes #1427 with suggested edit.
2023-03-04 11:36:13 +01:00
John Olheiser
9d90b1ffb7
Update when-path for Gitea ( #1598 )
...
As title, looks like it should have been updated at the same time as the
other notice.
2023-03-03 15:43:05 -06:00
Weblate
15a50bc0a3
Translated using Weblate (Polish)
...
Currently translated at 97.3% (254 of 261 strings)
Co-authored-by: Marcin Puc <tranzystorek.io@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
Translation: Woodpecker CI/UI
2023-03-01 17:29:37 +00:00
Anbraten
0bcbcb354f
Rename multi pipelines to workflows ( #1285 )
...
Co-authored-by: 6543 <6543@obermui.de>
2023-02-28 18:52:53 +01:00
Anbraten
c5f14180fb
Change issue template labels ( #1593 )
2023-02-28 18:31:40 +01:00
Anbraten
c05b51fb54
Add version notes to docs ( #1592 )
2023-02-28 17:30:25 +01:00
Weblate
0940223472
Translated using Weblate (Polish)
...
Currently translated at 87.7% (229 of 261 strings)
Co-authored-by: Marcin Puc <tranzystorek.io@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
Translation: Woodpecker CI/UI
2023-02-28 15:29:36 +00:00
smainz
156b321c2d
Sort repos by org and name ( #1548 )
...
Ensure that repos are sorted in the UI after doing a search.
See #1466
Co-authored-by: Anbraten <anton@ju60.de>
2023-02-28 11:14:19 +01:00
Weblate
003773540b
Translated using Weblate (Polish)
...
Currently translated at 84.6% (221 of 261 strings)
Co-authored-by: Marcin Puc <tranzystorek.io@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
Translation: Woodpecker CI/UI
2023-02-26 20:28:52 +00:00
6543
2a7f4728a5
Move helm charts to own repo "helm" ( #1589 )
...
-> https://github.com/woodpecker-ci/helm
2023-02-23 15:22:01 +02:00
Stephen Muth
be4ce2e02d
Ensure the SharedInformerFactory closes eventually ( #1585 )
...
Otherwise it will continue to collect events in the background, consuming memory that can't be GC'd.
2023-02-16 00:54:33 +01:00
Brian King
f71e623b09
Update 15-agent-config.md ( #1578 )
...
Document DOCKER_HOST environment variable as described at
https://github.com/woodpecker-ci/woodpecker/pull/763
2023-02-10 05:05:21 +01:00
Weblate
7c4972a16f
Translated using Weblate (Russian)
...
Currently translated at 100.0% (261 of 261 strings)
Co-authored-by: Leonid Maslakov <root@lcomrade.su>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
Translation: Woodpecker CI/UI
2023-02-07 07:29:29 +00:00
Weblate
fe97d37c92
Translated using Weblate (Russian)
...
Currently translated at 100.0% (261 of 261 strings)
Co-authored-by: Leonid Maslakov <root@lcomrade.su>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
Translation: Woodpecker CI/UI
2023-02-04 14:29:28 +00:00
Weblate
18ea3a3569
Translated using Weblate (French)
...
Currently translated at 100.0% (261 of 261 strings)
Co-authored-by: Michael <misc+weblatewoodp@zarb.org>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
Translation: Woodpecker CI/UI
2023-02-02 20:03:50 +00:00
6543
18d3139e9e
Use modern error handling and enforce it via lint ( #1327 )
...
Co-authored-by: Anbraten <anton@ju60.de>
2023-02-02 00:08:02 +01:00
Vitali Quiering
c73b1ecf2a
Allow custom dnsConfig in helm charts ( #1569 )
...
Co-authored-by: Anbraten <anton@ju60.de>
2023-02-01 19:09:58 +01:00
Earl Warren
7835a632e4
Define WOODPECKER_FORGE_TIMEOUT server config ( #1558 )
...
When a server such as Codeberg has unusually high response time, three
seconds may not be enough to fetch the configuration.
Signed-off-by: Earl Warren <contact@earl-warren.org>
Co-authored-by: 6543 <6543@obermui.de>
2023-02-01 18:53:19 +01:00
Weblate
e13792bff6
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (261 of 261 strings)
Co-authored-by: Linerly <linerly@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translation: Woodpecker CI/UI
2023-02-01 09:03:48 +00:00
Lauris BH
f26a87acce
Deduplicate step docker container volumes ( #1571 )
...
Try to fix #1495
It's very hard to reproduce it and only way to fix when it gets in this
state is woodpecker agent restart.
This anyway fixes problem if step mounts and
`WOODPECKER_BACKEND_DOCKER_VOLUMES` conflict
2023-01-31 21:33:40 +01:00
Anbraten
4c97a0104e
Hide not owned repos from sidebar and repo list ( #1453 )
...
Co-authored-by: Lukas <lukas@slucky.de>
2023-01-31 09:37:11 +01:00
Lauris BH
420ac54e62
Show platform, backend and capacity as badges in agent list ( #1568 )
...
Screenshots:
![attels](https://user-images.githubusercontent.com/165205/215585911-37813edc-05fc-4be8-9bc0-5bed80b0faf2.png )
![attels](https://user-images.githubusercontent.com/165205/215586019-360d49c5-069f-4735-ad58-698e8f14780a.png )
2023-01-30 21:53:59 +01:00
Anbraten
71d6c03ca7
Add agent no-schedule flag ( #1567 )
...
This flag allows an agent owner / admin to stop the agent from taking
new workflows / pipelines.
2023-01-30 20:18:48 +01:00
Weblate
5f818e933b
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (256 of 256 strings)
Translated using Weblate (Latvian)
Currently translated at 98.0% (251 of 256 strings)
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Linerly <linerly@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/lv/
Translation: Woodpecker CI/UI
2023-01-30 15:03:53 +00:00
Anbraten
d96032349a
Store an agents list and add agent heartbeats ( #1189 )
...
Co-authored-by: 6543 <6543@obermui.de>
2023-01-28 14:13:04 +01:00
Earl Warren
222ff11fd9
fix SetupConsoleLogger which is a noop ( #1564 )
...
When App.Before is called the options are not parsed yet, use
Command.Before instead.
2023-01-26 03:09:09 +01:00
Weblate
fbbfd61aac
Translated using Weblate (Polish)
...
Currently translated at 54.0% (128 of 237 strings)
Translated using Weblate (Indonesian)
Currently translated at 100.0% (237 of 237 strings)
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: Marcin Puc <tranzystorek.io@protonmail.com>
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/id/
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/pl/
Translation: Woodpecker CI/UI
2023-01-24 17:03:47 +00:00
Weblate
f0371c0463
Added translation using Weblate (Polish)
...
Co-authored-by: Marcin Puc <tranzystorek.io@protonmail.com>
2023-01-21 16:41:37 +00:00
Simon Vieille
03f4b05768
Dont require secret value on secret edit ( #1552 ) ( #1553 )
...
Co-authored-by: Simon Vieille <simon.vieille@trinaps.com>
2023-01-19 18:22:30 +01:00
6543
a389287d80
Disable secret encryption until its fixed ( #1549 )
...
#1475 , #1541 , #1544
2023-01-15 20:12:18 +01:00
smainz
b0fd99ec01
Consistent and more descriptive naming of parameters in index.ts ( #1455 )
...
Parameter naming has been made more descriptive and consistent:
- Change `number: number` to `pipelineNumber: number`.
- Rename `pipeline` to `pipelineNumber` when it refered to a pipeline number.
2023-01-15 16:33:12 +01:00
Simon Vieille
1cd73f0b76
Add Email plugin ( #1545 )
...
Add plugin to send build status notifications via Email
Co-authored-by: Simon Vieille <simon.vieille@trinaps.com>
2023-01-15 16:31:44 +01:00