Brad Rydzewski
970080e444
use a backoff when fetching the yaml
2017-12-01 09:22:30 -08:00
Brad Rydzewski
6397395570
Use 5s backoff with 1m timeout fetching .drone.yml
2017-11-28 11:36:22 -08:00
Bo-Yi Wu
837ed7b84c
Add testing.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-04 23:19:01 +08:00
Bo-Yi Wu
2a2ff0550c
fix missing commit sha and wrong tag link.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-04 23:06:37 +08:00
Brad Rydzewski
578e8847cf
Merge pull request #2241 from tboerger/fix-gitea
...
Urgent fix for changed auth behavior on Gitea
2017-10-13 07:59:47 -07:00
Thomas Boerger
517c003af2
Urgent fix for changed auth behavior on Gitea
...
Within the PR https://github.com/go-gitea/gitea/pull/2184 on Gitea the
project dropped the standard behavior to use x-auth-basic personal
access token. So we should use a proper username and the token from now
on to support Gitea >= 1.2.0. Since this driver anyway only supports
Gitea >= 1.2.0 this won't be a breaking change on Drone side, the only
breaking change is on side of Gitea!
2017-10-13 07:56:24 +02:00
Pavlo Kerestey
96734122b9
Fix typo of gogs pull request synchronized action
2017-10-12 12:32:17 +02:00
marcin.suterski
96af18993a
Use 'base_ref' as branch name for github tag events.
...
This chnage adds ability to filter builds by the source branch name for tag
events from Github.
2017-09-14 20:16:58 -04:00
Brad Rydzewski
913d8701f2
add gitlab v3 option for backward compat
2017-09-14 07:50:07 -07:00
Ivan Chernov
6074a0164e
Update gitlab API to version v4
2017-09-07 21:05:26 +03:00
Brad Rydzewski
7826888729
update listing
2017-08-26 15:59:57 -07:00
mingshun
eb94dc0419
Added integration for coding.net
2017-07-22 17:12:09 +08:00
Brad Rydzewski
0b1a60fabc
update gerrit implementation
2017-07-16 14:29:10 -04:00
Brad Rydzewski
35e0ee2e5f
implement sync logic
2017-07-14 15:58:38 -04:00
Chris Fordham
76950da64d
use of ProxyFromEnvironment for bitbucketserver
...
Similar to https://github.com/drone/drone/pull/1724 . Currently it looks like drone only supports this with github and gitlab. This PR will add the proxy support for bitbucketserver.
2017-07-11 19:35:45 +10:00
Bo-Yi Wu
b833b16f32
add missing Email from Hook Event in gitea. ( #2080 )
...
* add missing Email from Hook Event in gitea.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix field.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix avatar path
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix testing
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-06-21 06:53:47 +02:00
Bo-Yi Wu
f2b63b634f
update hook event
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
25ddaf858b
support deactivate method and refactor file method
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
7f072e331a
fix gitea file testing.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
f186d4c898
Gitea return a sha with the pull request
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
8e58099c51
fix typo
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
1417948d3d
fix import
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
fefbf9f06b
fix typo
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
c018f1a475
fix: comment
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
568e8f85d2
fix: update
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
0f95c504a2
fix: [ci skip] update comment.
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
4f256bfd5c
refactor: update vendor.
2017-05-24 10:16:32 +08:00
Bo-Yi Wu
2263ba2a8d
fix: rename Gogs to Gitea
2017-05-24 10:16:31 +08:00
Bo-Yi Wu
70072321e9
fix: remove username json field.
2017-05-24 10:16:31 +08:00
Bo-Yi Wu
4329268ee1
fix: add commit status testing.
2017-05-24 10:16:31 +08:00
Bo-Yi Wu
82548c4587
fix: testing
2017-05-24 10:16:31 +08:00
Bo-Yi Wu
35b1e1d386
feat: add gitea remote driver.
2017-05-24 10:16:31 +08:00
Brad Rydzewski
736e1bc9b5
fixed gogs pr unit test
2017-03-18 23:28:37 +08:00
Brad Rydzewski
0795dce4ed
added logging
2017-03-18 23:20:09 +08:00
Brad Rydzewski
bd25f57fa7
fix mock package name
2017-03-18 19:50:20 +08:00
Brad Rydzewski
45af1697b8
no need to trim file ref
2017-03-18 19:48:54 +08:00
Brad Rydzewski
130c623a35
compare yaml files
2017-03-18 19:25:53 +08:00
Brad Rydzewski
e319aaff15
add reviewer fields, endpoints
2017-03-18 16:49:27 +08:00
Vaidas Jablonskis
d8281c2cdf
Github: fix webhook struct tags
2017-03-01 16:47:46 +00:00
Joachim Hill-Grannec
df5d049239
Updates for consistency
2017-02-23 13:52:57 -08:00
Joachim Hill-Grannec
3141ccdaae
gofmt
2017-02-23 13:21:47 -08:00
Joachim Hill-Grannec
82189c27fe
Fix to check if the repo is enabled and don’t make a call to the settings it isn’t. The API works differently the first time vs if it’s ever been enabled.
2017-02-23 13:12:31 -08:00
Brad Rydzewski
89607232bc
Merge pull request #1928 from josmo/fix-hooks
...
Last known issue with the stash/bitbucket server remote. Will now not…
2017-02-12 01:31:25 +11:00
Brad Rydzewski
505e36788e
Merge pull request #1924 from josmo/stash-rsa-string
...
Stash rsa string
2017-02-11 16:22:58 +11:00
Bugagazavr
57b3752bd8
Use refs/merge-requests
...
https://github.com/drone/drone/issues/1931
2017-02-08 08:43:55 +02:00
Joachim Hill-Grannec
4b9a76570d
Change to private (lowercase)
2017-02-04 20:42:17 -08:00
Joachim Hill-Grannec
f9a8fd4a0a
Last known issue with the stash/bitbucket server remote. Will now not disable and override other hooks. It’ll add to the list of hooks and remove from the list of hooks on the project up to the max of 20 hooks
2017-02-04 15:27:01 -08:00
Joachim Hill-Grannec
a9e83aa5ce
gofmt modified files
2017-02-01 13:49:26 -08:00
Joachim Hill-Grannec
c413565521
adding the ability to set the RSA key as a string value on drone startup instead of a file that has to be mounted.
2017-02-01 13:41:45 -08:00
Brad Rydzewski
84f1bb4528
Merge pull request #1887 from AlekSi/master
...
Expose OAuth2 errors, avoid redirect loop.
2017-01-20 19:15:46 +07:00
Brad Rydzewski
a913750b67
Merge pull request #1908 from patrickjahns/feature/bitbucket_email_author_fixed
...
Feature/bitbucket email author fixed
2017-01-20 17:51:42 +07:00
Patrick Jahns
63a0659aa4
change regex to global regex
2017-01-20 11:36:48 +01:00
Patrick Jahns
e919be5210
extract email for bitbucket push requests from raw git commit
2017-01-20 10:48:13 +01:00
Michael de Wit
64663aba7f
Enable all webhook events by default for Gogs remote
2017-01-03 20:31:45 +01:00
Michael de Wit
141eb4ea57
Add pull_request webhook support to Gogs remote
2017-01-03 09:38:05 +01:00
Michael de Wit
c2703ff89c
Optimize performance
2016-12-22 14:24:05 +01:00
Michael de Wit
5c2938d970
Format code
2016-12-22 11:54:53 +01:00
Michael de Wit
3884e589a9
Remove /refs/tags or /refs/heads from Gogs remote File() when using build.Ref
2016-12-22 09:55:22 +01:00
Alexey Palazhchenko
b230afe7f5
Add AuthError type, use it.
2016-12-19 19:22:11 +03:00
Alexey Palazhchenko
e259c64bac
Expose OAuth2 errors, avoid redirect loop.
...
Closes #1775 .
2016-12-19 08:42:56 +03:00
Brad Rydzewski
24c97c4f1d
increased to 5sec
2016-12-14 00:49:22 -05:00
Brad Rydzewski
46a1842665
added backoff to fetch yaml file
2016-12-14 00:45:54 -05:00
Brad Rydzewski
a8b59c331a
Merge pull request #1874 from bradrydzewski/master
...
Improve Gogs tag implementation
2016-11-25 17:13:03 +01:00
Brad Rydzewski
538f82c898
improve Gogs tag implementation
2016-11-25 13:06:07 +01:00
Brad Rydzewski
b1c3ff76f7
Merge pull request #1873 from bradrydzewski/master
...
enables gogs private mode [ci skip]
2016-11-25 12:32:46 +01:00
Brad Rydzewski
658f999fcf
enable gogs private mode
2016-11-25 11:46:50 +01:00
Brad Rydzewski
f7eafb2094
Merge pull request #1866 from bradrydzewski/master
...
switch github pr branch from source to target
2016-11-21 15:26:38 +01:00
Brad Rydzewski
af296dcd2d
Merge pull request #1852 from jmccann/ghe_org_secrets
...
WIP: Check remote for org secrets permissions
2016-11-20 23:30:54 +01:00
Brad Rydzewski
5c1fcb082e
switch github pr branch from source to target
2016-11-20 23:21:27 +01:00
Brad Rydzewski
fbc6eadd32
bitbucket refspec and remote url
2016-11-19 23:44:22 +01:00
Brad Rydzewski
2465728633
track github remote url
2016-11-19 22:54:05 +01:00
Brad Rydzewski
dc0fdbc221
populate github refspec
2016-11-19 22:36:07 +01:00
Jacob McCann
820e0ab158
Check remote for org secrets access
...
Fully implemented for github remote
2016-11-18 22:12:28 -06:00
Brad Rydzewski
668ecb446d
Merge pull request #1498 from bsauvajon/master
...
Manage tag hooks from gogs
2016-10-25 00:24:09 +02:00
Bo-Yi Wu
2bd6884dbd
replace split with strings func.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-09-19 22:19:12 +08:00
brice
744cf55bf5
change eventType for tag events from gogs
2016-09-07 08:46:42 +02:00
Brad Rydzewski
23234fa000
Merge pull request #1778 from strk/gogs-pr-hook
...
Add sample gogs web hooks (unused yet) [CI SKIP]
2016-09-01 15:51:56 -05:00
Sandro Santilli
320b8b68f0
Fix ticks
2016-09-01 21:49:44 +02:00
Ivan Babrou
113c63bf8e
Cleanup debug logging in Bitbucket Server remote
2016-09-01 17:25:11 +01:00
Sandro Santilli
bacb78a9e2
Add more hooks to existing fixture file
2016-09-01 17:59:07 +02:00
Sandro Santilli
a2829a2e96
Add sample gogs web hooks (unused yet)
2016-08-31 22:57:52 +02:00
Thiago Rodrigues
3a926b35be
better coding
2016-08-30 00:06:35 -03:00
Thiago Rodrigues
ced1221ef6
adding pagination of repositories on bitbucketserver
2016-08-29 22:23:59 -03:00
Brendan Gaulin
5b58768d63
OAuth2 GHE Always Register BustedURL
...
When going through the oauth2 module in go, there is a list of "busted" URLs which don't implement OAuth2 properly.
Github is on that list, however Github Enterprise(GHE) uses different URLs for each instance. Instead of adding all of these to the global list in the oauth module, we can simply flag all of our tokens as broken until github updates their API.
2016-08-25 18:27:17 -04:00
Joachim Hill-Grannec
95b3a78aa9
Update to add the name which has a better indication for the label of what build the status is for
2016-08-14 12:27:53 -07:00
bsauvajon
c8d1fe0468
Manage TAG and BRANCH events sent from gogs
2016-08-14 12:26:35 +02:00
brice
82c534ad18
Suppression de EventBranch
2016-08-14 12:26:35 +02:00
Joachim Hill-Grannec
5c7a66534d
Adding the ability for the bitbucket server remote to update the status of commits on the server
2016-08-13 19:06:15 -07:00
Bo-Yi Wu
83056ab8b3
Testing author label length limitation.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-08-13 14:07:45 +08:00
Joachim Hill-Grannec
ea6ceb43e1
Merge branch 'bbserver-test' into length-temp-fix
2016-08-12 15:58:14 -07:00
Joachim Hill-Grannec
0c0a7a897b
Starting to add tests for bitbucket server
...
Removed a duplicate assert for bitbucket
2016-08-12 15:54:36 -07:00
Joachim Hill-Grannec
96ff3cd05a
Makes more sense for the author value to only have the name since other plugins may use this value.
2016-08-12 14:20:26 -07:00
Joachim Hill-Grannec
02630aedbe
Trimming build author length to 40 for default
...
Removed no longer needed comment
2016-08-12 13:14:58 -07:00
Joachim Hill-Grannec
529a9eba49
Merge branch 'master' into bbserver-cleanup
...
updated to also include build config updates
# Conflicts:
# remote/bitbucketserver/bitbucketserver.go
2016-08-11 13:35:47 -07:00
Thomas Boerger
606ca93881
Properly formatted bitbucketserver
2016-07-31 23:25:10 +02:00
Joachim Hill-Grannec
5b52ef924f
No longer used function
2016-07-24 17:06:44 -07:00
Joachim Hill-Grannec
df8f9de33d
Support for tags vs heads in builds
2016-07-24 15:13:50 -07:00
Joachim Hill-Grannec
7a5cf50b3d
Adding the commit message to the build
2016-07-24 14:21:00 -07:00
Joachim Hill-Grannec
70ebb097c8
Changed variables to lowercase
...
Moved to start using conversions and returning "bitbucket server types"
Moved the last push type into the internal package.
Simplified the types to have values of a repo type
2016-07-24 14:07:44 -07:00
Joachim Hill-Grannec
f80174f7c4
removing logging from low levels
2016-07-24 11:53:11 -07:00