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
Joachim Hill-Grannec
f7a83a1e43
Merge branch 'master' into bbserver-cleanup
2016-07-14 12:07:52 -07:00
Sandro Santilli
cacfd0c444
Fix resolution of relative avatar urls for Gogs published in subpath
...
Closes #1701
Includes a new test, and updates expected results for 3 of them (adding
the schema part)
2016-07-06 15:58:31 +02:00
Joachim Hill-Grannec
f4aa0168c7
Making sure to have branch name on the build
2016-06-26 00:10:09 -07:00
Joachim Hill-Grannec
3349089d2a
Moved struct
2016-06-25 22:59:41 -07:00
Joachim Hill-Grannec
6e4303aab3
Update to cleaner implementation for the bitbucket server implementation
2016-06-25 22:27:09 -07:00
Joachim Hill-Grannec
6624ff0ce6
Start of refactor to stash implementation to match other remotes
2016-06-25 16:45:33 -07:00
Joachim Hill-Grannec
6d7f1bf295
Getting security to work on the stash. Looks at hooks to see if someone has admin rights.
2016-06-13 22:08:56 -05:00
Joachim Hill-Grannec
a4d28e39a0
Missed an argument
2016-06-13 18:25:31 -05:00
Joachim Hill-Grannec
1152e430c4
Cleaner way to remove the username from the git clone URL
2016-06-13 18:10:16 -05:00
Joachim Hill-Grannec
be1b75fd45
Fix defer location and err check
2016-06-12 22:18:31 -07:00
Joachim Hill-Grannec
6f4c4a37dc
Remove log and fix typo
2016-06-11 18:53:41 -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
Fabio Rapposelli
837446825d
Add modifiable context for Github status API
2016-05-27 20:22:32 +02:00
jdamick
577dfbab27
fix for issue #1502
2016-05-12 13:09:52 -04:00
Brad Rydzewski
70c4676880
Merge pull request #1634 from bradrydzewski/master
...
ability to get team list from Gogs
2016-05-11 12:41:36 -07:00
Brad Rydzewski
2e709fb6a9
ability to get team list from Gogs
2016-05-11 12:32:18 -07:00
jdamick
d9c369bdc7
added scopes to the oauth2 config
2016-05-11 10:32:11 -04:00
Brad Rydzewski
4040dfceb8
significant improvement to GitHub remote coverage (from 5% to 50%)
2016-05-03 13:01:16 -07:00
Brad Rydzewski
f930545410
refactoring github package to increase test coverage
2016-05-02 17:47:58 -07:00
Brad Rydzewski
d8617cb7f9
fix mock remote to conform to interface
2016-05-02 12:43:09 -07:00
Brad Rydzewski
0fb4aeda3f
bump to 0.5 in master
2016-05-02 12:21:25 -07:00
Brad Rydzewski
ebd547deac
refactoring remotes to remove deprecated variables, adding tests
2016-05-01 16:30:00 -07:00
Brad Rydzewski
b978ed12eb
increased bitbucket test coverage
2016-04-30 23:22:30 -07:00
Brad Rydzewski
7c5257b61e
increased coverage for bitbucket package
2016-04-30 01:00:39 -07:00
Brad Rydzewski
082570fb5b
refactoring input and configuration
2016-04-29 12:39:56 -07:00
Martijn
3998b3171a
Correct repos API url
2016-04-21 14:53:41 +02:00
Joachim Hill-Grannec
06003bfc87
using fmt.Sprintf for string interpolation.
2016-04-20 13:14:48 -07:00
Joachim Hill-Grannec
95b1f347ba
Running gofmt on remote for bitbucket server
2016-04-20 11:59:47 -07:00
Joachim Hill-Grannec
262f505779
Moving the NewClient to load instead of on every call
2016-04-19 16:26:23 -07:00
Joachim Hill-Grannec
c250926460
Typo
2016-04-19 13:32:06 -07:00
Joachim Hill-Grannec
d982f73f8e
Must have a git username, password, consumer key, and consumer rsa
2016-04-19 13:29:52 -07:00
Joachim Hill-Grannec
0a20d9c1d2
Configurable consumer rsa file location
2016-04-19 13:26:52 -07:00
Joachim Hill-Grannec
16ddb75d08
moving the private key out of root and into a more sensical location till it's configurable
2016-04-19 10:44:19 -07:00
Joachim Hill-Grannec
b89b7cff5b
Removing no longer needed import
2016-04-19 09:49:22 -07:00
Joachim Hill-Grannec
02c87d02f5
Merge branch 'master' into bitbucketserver
...
Moving git username and password to the url
Removing un-needed setting of Allows
Moving log.Fatal to log.Error
Removing panics
Moving to https for gravatar
# Conflicts:
# remote/remote.go
2016-04-19 09:47:02 -07:00
Joachim Hill-Grannec
df45c84763
added a few comments
2016-04-19 01:32:40 -04:00
Joachim Hill-Grannec
4b31babb98
fixing to use the commit hash instead of the refID
2016-04-19 01:14:55 -04:00
Joachim Hill-Grannec
4f9f5673aa
Fixing the url to gravatar to have hex encoding
2016-04-19 01:07:03 -04:00
Joachim Hill-Grannec
59edcd3389
Initial take at the bitbucket server remote additions.
2016-04-19 00:40:49 -04:00
Jyrno Ader
127f239493
Handle Bitbucket mercurial hooks correctly
2016-04-17 08:16:40 +03:00
Brad Rydzewski
857062d895
fixed failing gitlab test
2016-04-12 13:22:23 -07:00
Brad Rydzewski
84db808eca
fixed unit test reference deleted pkg
2016-04-12 13:15:03 -07:00
Brad Rydzewski
9b306a1bc8
load all things via middleware
2016-04-12 13:08:17 -07:00
Brad Rydzewski
a9c84d26e1
Merge pull request #1560 from iamjarvo/auth-with-ghe
...
Match user url against default api url
2016-04-02 13:59:35 -07:00
Jearvon Dharrie
c0cb91c37e
Match user url against default api url
...
Some GHE urls can have the github url prefix.
I.E https://github.compaq.com , this caused the GHE code not to run.
User.url is the api url for that that user
GHE urls always have /api/version at the end. Probability of a GHE url
starting with api.github is low
2016-04-02 16:45:43 -04:00
Jeff Storey
79dc866f43
getting rid of string split and using the regex match
2016-03-30 07:59:06 -04:00
Jeff Storey
3e4b871991
adding check for github link
2016-03-29 20:05:28 -04:00
Jeff Storey
6ddc2abf47
#1550 deployment status hooks for github
2016-03-29 14:10:33 -04:00
Matthias Loibl
2de58d1f90
Use gofmt to fmt & simplify
2016-03-27 01:24:09 +01:00
Kirill Zaitsev
d7b066b308
Use GetUserRepos instead GetAllRepos
2016-03-26 18:48:35 +03:00
Fabio Rapposelli
e5131fd76e
Add tuneable build file parameter BUILD_CONFIG_FILE
2016-03-25 00:08:27 +01:00
alex
c2f3cf06ad
Parameterize GitHub OAuth2 scopes.
...
If no scope provided, default will be used:
scope=repo,repo:status,user:email.
2016-03-10 19:30:14 +00:00
Brad Rydzewski
3dd0260b69
improve and simplify repository caching
2016-03-04 21:15:50 -08:00
Brad Rydzewski
f19841c2d2
Merge pull request #1504 from Bugagazavr/fetch-data-from-hooks
...
Added support for new attributes for GitLab
2016-03-03 12:36:58 -08:00
Kirill Zaitsev
f9c299ce57
Added support for new hook attributes in merge request hook
2016-02-28 20:11:50 +03:00
Kirill Zaitsev
37e29b930e
More coverage for gitlab hooks
2016-02-22 23:43:54 +03:00
Kirill Zaitsev
39dc9f7c76
Added support for new attributes
2016-02-22 22:35:53 +03:00
Brad Rydzewski
35b9c0ff9a
Merge pull request #1486 from Bugagazavr/gitlab-group-verify
...
GitLab allowed groups for login
2016-02-16 09:48:51 -08:00
Aurélien Thieriot
05207546c6
Add ability to hide Archived projects from Gitlab
2016-02-16 11:35:20 +00:00
Kirill Zaitsev
b8b120afcc
GitLab allowed groups for login
2016-02-14 03:38:31 +03:00
Kirill Zaitsev
1f9516a385
Dot names fix
2016-02-02 01:28:09 +03:00
Kirilll Zaycev
fbf36458f1
Committer avatar
2016-02-01 02:49:52 +03:00
Kirilll Zaycev
193d524493
Ensure we add avatar when activate repo
2016-02-01 02:22:44 +03:00
Kirilll Zaycev
c4a608b38c
Added gitlab repository avatars
2016-02-01 01:55:59 +03:00
Michael Gibson
2de9f29c6b
enabling skip_verify functionality in gogs client
2016-01-21 09:50:15 -07:00
Kirilll Zaycev
32e2371ba6
Add member struct to project
2016-01-14 02:05:46 +03:00
Brad Rydzewski
bff5834677
Merge pull request #1374 from Bugagazavr/embedded-gitlab-client
...
Move gitlab client inside drone
2016-01-13 12:43:39 -08:00
Jonathan Duck
007a3462ca
Allow Gogs server on a subdirectory
2016-01-13 04:31:16 -08:00
Brad Rydzewski
c60b7eddee
Merge pull request #1382 from frapposelli/gh-status-fix
...
Make GitHub status API context congruous
2016-01-12 11:22:24 -08:00
Georges Chaudy
39ee59a01b
fix: gitlab owner permission
2016-01-12 15:40:13 +00:00
Georges Chaudy
bd616344fd
fix: gitlab owner has admin privileges
2016-01-08 17:42:47 +00:00
Kirilll Zaycev
c69343ecc6
Remove println
2016-01-05 01:16:50 +03:00
Kirilll Zaycev
73dd59d1ca
Remove unused data from structs
2016-01-05 01:07:36 +03:00
Brad Rydzewski
32cdf41ce7
Strip port from gogs netrc file
2015-12-24 10:09:18 -05:00
Fabio Rapposelli
9eb4161750
Make GitHub status API context congruous
...
Signed-off-by: Fabio Rapposelli <fabio@vmware.com>
2015-12-22 14:10:39 +01:00
alex
5ca67d304c
Do not ignore refs/heads/gh-pages
2015-12-18 10:57:38 +00:00
Kirilll Zaycev
b5e50ff766
Gitlab commit statuses
2015-12-13 13:50:37 +03:00
Kirilll Zaycev
044e2ea07a
Added hook parser and opaque in request
2015-12-13 13:50:37 +03:00
Kirilll Zaycev
d9f9d6f762
Move gitlab client inside drone
2015-12-13 13:50:37 +03:00
Greg Taylor
7365ae111e
Temporary bandaid to fix Bitbucket case sensitivity.
2015-11-25 17:09:57 -08:00
Aiden Nibali
f4e6357e96
Add support for Bitbucket build status
2015-11-21 16:48:25 +11:00
Greg Taylor
d4fb58d2e6
Adding Bitbucket tag push hook support.
2015-11-19 12:38:20 -08:00
Greg Taylor
68a71b7baa
Spelling nit in remote/bitbucket.go.
2015-11-18 14:29:50 -08:00
Adam Stepinski
cda3e443c6
sanitize description
2015-11-11 13:43:20 -08:00
Adam Stepinski
c7c2c13f2c
include test
2015-11-11 13:42:31 -08:00
Adam Stepinski
1c9cfcd376
pull build author from pull request user
2015-11-11 13:41:45 -08:00
Thomas Frössman
d8e74ebc63
Add tag event support in Gitlab remote
2015-11-02 04:31:42 +01:00
Brad Rydzewski
7c2764f8eb
SkipVerify oauth code as needed
2015-10-30 14:47:46 -07:00
Brad Rydzewski
bc5ec51a6e
don't return error if drone.sec not found
2015-10-29 16:15:06 -07:00
Brad Rydzewski
525fd50f43
attempt fix gitlab drone.sec issue
2015-10-29 16:10:26 -07:00
Brad Rydzewski
970cf0ecae
adding some debugging code for #1280
2015-10-29 13:47:46 -07:00
Brad Rydzewski
e1daf0fd74
fix corner case with double-slash in Gogs sender. see #1263
2015-10-27 18:44:41 -07:00
Brad Rydzewski
4a0deff5a5
implements Stringer for store and remotes
2015-10-27 16:48:05 -07:00
Brad Rydzewski
fc02d38b4a
updates the github deployment hook parser to work with older payloads
2015-10-27 14:53:55 -07:00
Brad Rydzewski
37a8a6d4e9
add github deployment environment to build.Deploy
2015-10-27 13:09:13 -07:00
Brad Rydzewski
25fa705511
added scm and deploy fields. plan to support hg, github deploys
2015-10-27 13:03:37 -07:00
Brad Rydzewski
937e61b8a1
expand user avatar url as well. #1263
2015-10-27 10:58:58 -07:00
Brad Rydzewski
b5a90e0a88
handle gogs custom gravatars. fixes #1263
2015-10-27 10:32:14 -07:00
Brad Rydzewski
e71905273d
parses github hooks
2015-10-26 17:31:26 -07:00
Brad Rydzewski
001c06bb2c
parses github deployment hooks for #1144 into build objects
2015-10-26 17:29:29 -07:00