Commit graph

5911 commits

Author SHA1 Message Date
qwerty287
acd862cac3
Improve error on config loading (#4024) 2024-08-11 12:05:10 +02:00
qwerty287
d1bd624857
Update some readme wording (#4023) 2024-08-11 10:26:26 +02:00
borderss
0ac19a1a1b Translated using Weblate (Latvian)
Currently translated at 100.0% (331 of 331 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/lv/
2024-08-10 22:57:55 +00:00
Gianluca Boiano
0facbf9955 Translated using Weblate (Italian)
Currently translated at 100.0% (331 of 331 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/it/
2024-08-10 22:57:55 +00:00
qwerty287
67a9c7991c
Fix cron migration (#4020) 2024-08-10 21:32:21 +02:00
qwerty287
eeec084293
Set refspec for gitlab MR (#4021) 2024-08-10 21:43:50 +03:00
qwerty287
92ff320429
Remove various deprecations (#4017) 2024-08-09 16:50:35 +02:00
Kirill Isakov
948201f12c Translated using Weblate (Russian)
Currently translated at 100.0% (331 of 331 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
2024-08-08 17:57:55 +00:00
qwerty287
6ba57bd326 Translated using Weblate (German)
Currently translated at 100.0% (331 of 331 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/de/
2024-08-08 17:57:54 +00:00
hg
df5287bb65
Set CI_PREV_COMMIT_{SOURCE,TARGET}_BRANCH as mentioned in the documentation (#4001) 2024-08-08 19:01:59 +02:00
qwerty287
0d9e57d3da
Drop repo name fallback for hooks (#4013) 2024-08-08 07:50:38 +02:00
qwerty287
1156c22cd1
Update gitea sdk (#4012) 2024-08-08 07:35:43 +02:00
qwerty287
107564f54c
Show error if secret name is missing (#4014) 2024-08-08 00:26:50 +02:00
qwerty287
c0b1d6aaa4
Allow using args in container (#4011) 2024-08-07 21:11:55 +02:00
qwerty287
b0fe208399
Show error returned from API (#3980) 2024-08-07 18:47:13 +02:00
Thomas Anderson
6c9469f610
Improved Local backend detection (#4006)
Co-authored-by: 6543 <6543@obermui.de>
2024-08-07 12:04:10 +02:00
qwerty287
2081ca85db
Refactor JSON and SDK fields (#3968) 2024-08-07 10:49:03 +02:00
qwerty287
2d1bc9f15c
Move manual popup to own page (#3981) 2024-08-07 09:31:17 +02:00
qwerty287
c864f24ae4
Migrate to maintained cron lib and remove seconds (#3785)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-08-06 19:22:28 +02:00
Thomas Anderson
ca41540151
Switched to profile-based AppArmor configuration (#4008)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-08-06 19:05:04 +02:00
Thomas Anderson
dc10fb95ad
Removed Kubernetes default image pull secret name (#4005)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-08-06 18:47:31 +02:00
Jener Rasmussen
f20327eb03
[Bitbucket Datacenter] Return empty list instead of null (#4010) 2024-08-06 18:31:50 +02:00
Thomas Anderson
c5746ccb50
Fail on InvalidImageName (#4007) 2024-08-06 17:07:07 +02:00
qwerty287
08b44b95c3
Remove reverted PR from changelog (#4003)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-08-05 01:34:13 +02:00
Patrick Schratz
106b6e01c0
Overhaul README (#3995) 2024-08-05 01:27:25 +02:00
Divya Jain
93c2a11020
Fix org settings page (#4002)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-08-04 17:46:57 +02:00
Kirill Isakov
c593111852 Translated using Weblate (Russian)
Currently translated at 100.0% (330 of 330 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
2024-08-03 21:57:54 +00:00
Kirill Isakov
3f8d54eb3b Translated using Weblate (Russian)
Currently translated at 99.6% (329 of 330 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ru/
2024-08-02 21:44:04 +00:00
Joan Flotats
2d6e1ea015
Fix BB PR pipeline ref (#3985) 2024-08-02 21:42:04 +02:00
Michael
6f4ef6d18d Translated using Weblate (French)
Currently translated at 97.2% (321 of 330 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/fr/
2024-08-02 13:57:54 +00:00
Joan Flotats
ec02379b04
Use Bitbucket PR title for pipeline message (#3984) 2024-07-30 20:37:33 +02:00
renovate[bot]
2d039f85cb
chore(deps): lock file maintenance (#3991)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-30 08:46:31 +02:00
renovate[bot]
c8a95fa204
fix(deps): update docs npm deps non-major (#3990)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-07-30 08:24:12 +02:00
renovate[bot]
ef8e03396e
fix(deps): update github.com/urfave/cli/v3 digest to 127cf54 (#3989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 08:12:25 +02:00
Gianluca Boiano
1c1d082f5e Translated using Weblate (Italian)
Currently translated at 100.0% (330 of 330 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/it/
2024-07-26 13:47:46 +00:00
qwerty287
61f4c6a540
Show logs if step has error (#3979) 2024-07-25 23:25:55 +02:00
qwerty287
0a91e07397
Remove oauth env (#3978) 2024-07-25 22:48:41 +02:00
qwerty287
111eb7ef48
Fix dropped env vars (#3969)
Co-authored-by: 6543 <6543@obermui.de>
2024-07-25 17:17:09 +02:00
qwerty287
3ae4a8d7bb
Drop version in schema (#3970) 2024-07-25 00:43:43 +02:00
qwerty287
123c4ae03e
Update docker to v27 (#3972) 2024-07-25 00:43:21 +02:00
qwerty287
b6ac64c4f6
Require gitlab 12.4 (#3966) 2024-07-23 20:48:21 +02:00
qwerty287
b330c19bf4
Migrate to maintained httpsign library (#3839)
Co-authored-by: 6543 <6543@obermui.de>
2024-07-23 20:41:37 +02:00
Joan Flotats
047eb19d42
Change Bitbucket PR hook to point the source branch, commit & ref (#3965)
## Description

This is the first fix for: https://github.com/woodpecker-ci/woodpecker/issues/3932

Change the Pull Request hook parser to return the source commit, branch, and ref instead of the destination. Right now, the workflow pulls the destination configuration and code. It should pull the source configuration and code to verify that the configuration and code work as expected before merging the changes.

In case of the close event, the hook parser returns the destination branch, ref and merge commit. Usually, the contributor automatically deletes the source branch after merging the changes to the destination branch. Using the source values will cause the workflow to fail.

After the changes, Woodpecker will correctly download the workflow from the source branch (Pull Request commit), but it will fail to clone the repository. This issue is related to the commit format returned by the Bitbucket webhook. This inconsistency has already been reported: https://jira.atlassian.com/browse/BCLOUD-21201. The webhook returns a short SHA. The problem is that the `git fetch` command requires the full SHA. 

A workaround for this issue is to use the ref to fetch the code:

```yaml
clone:
  git:
    image: woodpeckerci/plugin-git
    settings:
      ref: ${CI_COMMIT_REF}
```

This is not ideal, because the Pull Request head won't always match the workflow commit, but it solves 80% of the event use cases (e.g. trigger a pull request workflow on change). This workaround won't work when re-running a previous workflow pointing to another commit, it will pull the last commit, not the previous one.

## Solutions

The solution proposed by the community is to retrieve the full SHA from the Bitbucket API using the short one. This solution has drawbacks:
- The Bitbucket API rate limit is 1000 req/h. This solution will reduce the maximum number of workflow runs per hour.
- It requires a braking change in the forges interface because the ´Hook(...)´ method does not have an instance of the HTTP Client. 

We propose to allow the git plugin to fetch the source code from a URL. The Bitbucket returns a link pointing to the commit. 

This proposal only requires a small change to the git plugin:
- Add a new optional parameter (e.g. CommitLink)
- Add a clause to the following conditional: 7ac9615f40/plugin.go (L79C1-L88C3)
```go
if p.Pipeline.CommitLink != "" {...}
```
Git commands:
```shell
$ git fetch --no-tags --depth=1 --filter=tree:0 https://bitbucket.org/workspace/repo/commits/692972aabfec
$ git reset --hard -q 692972aabfec # It works with the short SHA
```
Woodpecker will set CommitLink to a blank string for the other forges, but Bitbuckket will use the one returned by the webhook.
2024-07-23 16:58:38 +02:00
6543
659e925d0e
Remove WOODPECKER_DEV_OAUTH_HOST and WOODPECKER_DEV_GITEA_OAUTH_URL (#3961)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-07-23 14:25:39 +02:00
Joan Flotats
3a4ffe951e
Add updated, merged and declined events to bb webhook activation (#3963)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-07-23 14:17:58 +02:00
Anbraten
9948163e6e
Fix login via navbar (#3962) 2024-07-23 13:46:22 +02:00
6543
1c7c87b8f0
Remove deprecated pipeline settings (#3916) 2024-07-23 13:06:47 +02:00
Gianluca Boiano
bbdeb4622c Translated using Weblate (Italian)
Currently translated at 100.0% (329 of 329 strings)

Translation: Woodpecker CI/UI
Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/it/
2024-07-22 19:57:52 +00:00
6543
c8411d7f83
cspell lint docs (#3787)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-07-22 20:42:00 +02:00
renovate[bot]
251129a29c
fix(deps): update golang-packages (#3958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2024-07-22 18:18:26 +02:00