Commit graph

590 commits

Author SHA1 Message Date
Brad Rydzewski
778971eb68 removed unused packages 2016-09-27 20:30:28 -05:00
Brad Rydzewski
584ec88b07 add platform field and selector capabilities 2016-09-27 20:16:46 -05:00
Brad Rydzewski
6f44450ef8 initial sort of working mq integration 2016-09-27 19:33:13 -05:00
Brad Rydzewski
0b2f1c8e51 integrates drone/mq into agent 2016-09-26 03:29:05 -05:00
Brad Rydzewski
f2c1d46f9e queue integrated with server, but not agent 2016-09-26 00:39:28 -05:00
Vaidas Jablonskis
5e78e471ee Fix a typo in reserved build params 2016-08-11 21:57:38 +03:00
Thomas Boerger
298dcd5a50
Integrated real API implementation for org secrets 2016-07-31 23:25:10 +02:00
Thomas Boerger
9aac9e5bf7
Integrated team secrets dummy API 2016-07-31 23:25:10 +02:00
Vaidas Jablonskis
7170cd6758 Add custom build parameters support to build re-start and deploy 2016-07-27 22:33:14 +01:00
Brad Rydzewski
71de0d9408 hacky fixed for race conditions on cancel 2016-07-13 17:33:28 -07:00
Brad Rydzewski
c27a5dd0b4 modifying cancel logic 2016-07-13 14:25:40 -07:00
Sandro Santilli
a24f584336 Separate core imports from external ones 2016-07-12 13:51:25 +02:00
Sandro Santilli
7dbeb6f42e Use Warning instead of Error on sql failure in badge 2016-07-12 13:43:32 +02:00
Sandro Santilli
042e779e08 Use Sirupsen/logrus for logs 2016-07-12 13:28:02 +02:00
Sandro Santilli
578f73c791 Make badgeNone usable in HTML img tag (returning 200 instead of 404)
Also adds a print in the log about the kind of failure
2016-07-12 12:53:01 +02:00
Brad Rydzewski
324392d3e0 fix form action typo in Gogs logic form 2016-07-09 10:22:05 -07:00
Brad Rydzewski
4d1df2924c replace UI with single page application (#1704) 2016-07-08 15:40:29 -07:00
Thomas Boerger
41af9c0720
Integrated initial command to list secrets
Since we are not able to list the already set secrets I have added the
required API andpoint and the required sub command to list them.
2016-06-28 00:20:01 +02:00
Brad Rydzewski
67ac073164 repo feed for latest build only 2016-06-14 17:34:47 -07:00
Brad Rydzewski
769551cb44 ability to pull full vs partial list 2016-06-14 15:20:17 -07:00
Brad Rydzewski
d656b2a75b add chown command to switch repo owner 2016-06-14 14:05:53 -07:00
Brad Rydzewski
8de93539e3 use correct content-type for logs 2016-06-14 14:01:20 -07:00
Brad Rydzewski
08a4bf06a5 ability to flush user repo cache 2016-06-14 13:07:05 -07:00
Brad Rydzewski
5456f13e9c ability to stream logs using websockets 2016-05-23 14:35:58 -07:00
Brad Rydzewski
752ce496d5 added code for agent to ping central drone server 2016-05-11 14:37:56 -07:00
Brad Rydzewski
4e74e161f0 quick hack to enable log sections 2016-05-11 00:36:01 -07:00
Brad Rydzewski
447741b840 added query, endpoint, cli for build queue items 2016-05-10 22:19:45 -07:00
Brad Rydzewski
e7aa94f875 store signature and verification in database 2016-05-10 18:48:02 -07:00
Brad Rydzewski
850c00dbba drone exec and drone agent now share code 2016-05-10 17:03:24 -07:00
Brad Rydzewski
3d05659134 simplify build engine for reliability 2016-05-09 22:57:57 -07:00
Brad Rydzewski
a7d3873891 removed import that was mistakenly auto-added 2016-05-02 17:52:34 -07:00
Brad Rydzewski
f930545410 refactoring github package to increase test coverage 2016-05-02 17:47:58 -07:00
Brad Rydzewski
0fb4aeda3f bump to 0.5 in master 2016-05-02 12:21:25 -07:00
Brad Rydzewski
53eac09f34 added org and open registration 2016-05-01 17:33:22 -07:00
Brad Rydzewski
ebd547deac refactoring remotes to remove deprecated variables, adding tests 2016-05-01 16:30:00 -07:00
Brad Rydzewski
082570fb5b refactoring input and configuration 2016-04-29 12:39:56 -07:00
Brad Rydzewski
30eed8723d moved all remaining files under designated structure 2015-05-17 14:25:04 -07:00
Brad Rydzewski
e3f0a39761 moving more data under pkg dir 2015-05-17 13:51:42 -07:00
Brad Rydzewski
f6b0c0cd9c fix failed unit test caused by restructuring 2015-05-17 11:48:02 -07:00
Brad Rydzewski
40a9543c0c moving remote pkg per new multi-binary structure 2015-05-17 11:45:09 -07:00
Brad Rydzewski
137fb62e85 moving queue package 2015-05-17 11:42:56 -07:00
Brad Rydzewski
f58b48d329 moved yaml parsing to yaml package 2015-05-17 11:36:12 -07:00
Brad Rydzewski
4c847296d4 refactoring toward multi-binary project layout 2015-05-17 11:10:43 -07:00
Brad Rydzewski
2e9786c68e prevent hanging event source connections 2015-05-16 20:35:41 -07:00
Brad Rydzewski
b3951043a0 temp workaround to get Drone correctly stream SSE events 2015-05-16 20:08:32 -07:00
Brad Rydzewski
27aadca029 upgraded to latest version of gin to take advantage of SSE 2015-05-16 19:46:12 -07:00
Brad Rydzewski
64663e9742 fixed some build issues 2015-05-16 17:46:29 -07:00
Brad Rydzewski
28061efeea sets default build timeout 2015-05-15 17:19:15 -07:00
Brad Rydzewski
1ef6dc0bc6 persist self url in repo field 2015-05-12 23:58:30 -07:00
Ben Schumacher
01eae26623 Fix Datastore mock and badge_test.go 2015-05-12 11:06:00 -06:00
Brad Rydzewski
7762ecac90 always display sub-build list 2015-05-11 00:53:56 -07:00
Brad Rydzewski
85256d3a22 backported 0.4 changes to existing database 2015-05-11 00:45:31 -07:00
Brad Rydzewski
d07c0cb80d github status api 2015-05-09 20:46:32 -07:00
Brad Rydzewski
7f162c80b9 post-commit hook should trigger commit status update 2015-05-09 20:14:01 -07:00
Brad Rydzewski
fb2999c35d include private key in json, manually scrub from rest responses 2015-05-09 12:54:38 -07:00
Daniel Oliveira
ba159976a0 Fixing TODO comments in code /cc @oliveiradan
1. server/login.go:49 (// TODO(bradrydzewski) return an error message instead). Added error message if authorization fails.
2. server/repos.go:178 (TODO(bradrydzewski) verify repo not exists). Added a checking for the repo and return an error in case it does not exist.
3. server/queue.go:170:  // TODO (bradrydzewski) change this interface to accept an io.Reader. All references to the API change been in question SetLogs() have been modified.
4. remote/github/github.go:106  // Fixed a crash in case *repo_.Language is nil , when de-referencing it. This could happen when a repo only has a readme, so github hasn't set the language yet.
5. ./server/queue.go:170:  // TODO (bradrydzewski) change this interface to accept an io.Reader. All references to the API change been in question SetLogs() have been modified.
6. .remote/github/github.go:106  // Fixed a crash in case *repo_.Language is nil , when de-referencing it. This could happen when a repo only has a readme, so github hasn't set the language yet.
2015-05-08 10:47:40 -06:00
Brad Rydzewski
0034c12141 initial work on build cancellation 2015-05-06 01:24:55 -07:00
Brad Rydzewski
f82c8ff6d7 ability to stream builds 2015-05-06 00:56:06 -07:00
Brad Rydzewski
091f0e9918 fixed some race conditions and cpu locking 2015-05-05 20:59:07 -07:00
Brad Rydzewski
80d8d10c15 ws improvements 2015-05-05 20:26:57 -07:00
Brad Rydzewski
cf27863841 temporarily replace bson with gob 2015-05-05 20:22:02 -07:00
Brad Rydzewski
fa07d82461 pre-marshal websocket message to avoid possible race 2015-05-05 19:46:26 -07:00
Brad Rydzewski
204fba9018 some initial work on a builtin build runner 2015-05-05 01:04:20 -07:00
Brad Rydzewski
51e995e0a1 more mock examples 2015-04-30 22:48:15 -07:00
Brad Rydzewski
9c882c1a9e table-driven tests for badge permutations 2015-04-30 22:18:39 -07:00
Brad Rydzewski
acc6bb76ee minor restructuring 2015-04-30 21:20:59 -07:00
Brad Rydzewski
0690a85bd3 Merge pull request #994 from benschumacher/testify-mocks
Alternative pattern for API unit tests (versus #991)
2015-04-30 21:07:21 -07:00
Brad Rydzewski
3a4772cbe6 added favicon 2015-04-30 19:14:42 -07:00
Brad Rydzewski
779c1c06d3 agent endpoints now protected 2015-04-30 14:57:53 -07:00
Brad Rydzewski
0dc79e5886 page to get token for workers 2015-04-30 14:41:52 -07:00
Brad Rydzewski
6fcae7d80a hooks are protected with signed sha 2015-04-30 14:23:46 -07:00
Brad Rydzewski
64cc684295 added error message when cannot create repo 2015-04-30 11:01:46 -07:00
Brad Rydzewski
371a64ef6a hook honors branch filter 2015-04-30 10:39:16 -07:00
Brad Rydzewski
543a46a755 contacts agent to cancel build 2015-04-30 00:42:23 -07:00
Brad Rydzewski
3863617056 allow websocket connections cross-origin 2015-04-30 00:24:39 -07:00
Brad Rydzewski
77246cc9c9 hide build output when pending 2015-04-30 00:20:48 -07:00
Brad Rydzewski
ad80facbbd websocket output working 2015-04-29 19:57:43 -07:00
Brad Rydzewski
7a75a17535 ability to visit public repos when not authenticated 2015-04-29 16:08:21 -07:00
Brad Rydzewski
f740bf91cf don't display logs when build is killed 2015-04-28 16:36:13 -07:00
Brad Rydzewski
7649248385 hooked up restart, cancel in user interface 2015-04-28 16:27:30 -07:00
Brad Rydzewski
864a47f502 added error messages to login flow 2015-04-28 16:08:20 -07:00
Brad Rydzewski
b84943222b get netrc data when hook is triggering 2015-04-28 15:08:21 -07:00
Ben Schumacher
52b441527c Fix spelling mistake 2015-04-28 15:57:56 -06:00
Ben Schumacher
0e53778d22 Badge API tests 2015-04-28 15:42:09 -06:00
Ben Schumacher
e033a1a4a5 Alternative pattern for API unit tests 2015-04-27 15:48:21 -06:00
Daniel Oliveira
4ade23e8ac Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-27 10:41:25 -06:00
Brad Rydzewski
65105d06c2 queue polling not correctly handles client disconnect 2015-04-26 23:49:38 -07:00
Daniel Oliveira
4e53cc184e Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-25 22:40:36 -06:00
Brad Rydzewski
96b49cf0fc website subscribes to build events, update pages 2015-04-25 21:27:24 -07:00
Brad Rydzewski
712c18459f serving the index.html page from bindata 2015-04-25 16:43:51 -07:00
Brad Rydzewski
3b7c9738a3 ability to squash and embed static files 2015-04-25 16:16:56 -07:00
Daniel Oliveira
707b0e3e13 Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-24 18:21:19 -06:00
Daniel Oliveira
abc83303ee solve build.go conflict 2015-04-24 18:19:48 -06:00
Brad Rydzewski
a1f3b2da4d got websocket events working 2015-04-24 17:06:46 -07:00
Brad Rydzewski
da350989d3 fixed minor queue glitches 2015-04-24 14:25:03 -07:00
Daniel Oliveira
987e85f261 About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 13:39:36 -06:00
Daniel Oliveira
4edf385d1c About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 12:15:17 -06:00
Brad Rydzewski
d2776bc990 added code for remote queue plugin 2015-04-22 01:00:15 -07:00
Brad Rydzewski
b16759b0b6 code to inject private params 2015-04-21 15:48:48 -07:00
Brad Rydzewski
7a668b79c7 preparation for parsing build output to ansi format 2015-04-21 15:48:26 -07:00
Brad Rydzewski
79b83025a8 added cluster in place of pool, some other minor changes 2015-04-21 15:48:06 -07:00
Brad Rydzewski
3520a295d5 added terminal highlight code 2015-04-16 22:16:32 -07:00
Brad Rydzewski
43381827b9 stubs for restarting, canceling builds 2015-04-16 22:07:13 -07:00
Brad Rydzewski
fd5a017384 added public key to repo settings 2015-04-16 15:15:05 -07:00
Brad Rydzewski
c4279678e8 only fetch logs if build finished 2015-04-16 15:05:00 -07:00
Brad Rydzewski
5f35f46c24 embedded task and status in build struct 2015-04-16 14:45:05 -07:00
Brad Rydzewski
110af2a196 using gravatar library instead of our own built-in func 2015-04-16 00:31:17 -07:00
Brad Rydzewski
433159e990 hook now calculates build matrix and creates appropriate tasks 2015-04-16 00:24:53 -07:00
Brad Rydzewski
c324d66872 ability to pull list of orgs and verify membership 2015-04-15 00:20:00 -07:00
Brad Rydzewski
0c3f9e5bde REST cleanup. Idiomatic naming of datastore funcs 2015-04-14 22:04:38 -07:00
Brad Rydzewski
1ad5e3f597 repo subscriptions functioning in datastore w/ index 2015-04-13 21:39:05 -07:00
Brad Rydzewski
aebacfccd7 fixed token expiration calculation 2015-04-13 19:11:33 -07:00
Brad Rydzewski
a40d20dcdb check token expiry 2015-04-13 19:07:05 -07:00
Brad Rydzewski
d1d762aa83 fail to generate user tokens if no secret 2015-04-13 18:43:21 -07:00
Brad Rydzewski
6c3f99065a ability to manage user tokens via website 2015-04-13 16:33:29 -07:00
Brad Rydzewski
57188ee4f2 ability to manage tokens 2015-04-13 01:22:51 -07:00
Brad Rydzewski
701626881e ability to create a token 2015-04-12 23:15:28 -07:00
Brad Rydzewski
54e4250df9 ability to limit (or not) the log output 2015-04-12 23:08:55 -07:00
Brad Rydzewski
66990a95b4 initial work on tokens 2015-04-12 22:32:32 -07:00
Brad Rydzewski
0f60073adc session tokens converging with user tokens 2015-04-12 21:35:16 -07:00
Brad Rydzewski
eda3cfbe4b added logging when login or hook fails. helps troubleshoot common issues 2015-04-11 15:46:30 -07:00
Brad Rydzewski
087f92f41f tokens, last build 2015-04-10 22:22:55 -07:00
Brad Rydzewski
950e4f4090 storing user repos index inside users object, for now 2015-04-08 22:18:25 -07:00
Brad Rydzewski
c9edd1a018 source session secret from config file 2015-04-08 16:36:56 -07:00
Brad Rydzewski
89c95f4f00 add token,secret when creating user 2015-04-08 15:54:08 -07:00
Brad Rydzewski
9298f16155 added handlers, rest, angular skeleton 2015-04-08 15:43:59 -07:00
Brad Rydzewski
d9fd23a6df experimental branch. playing around with boltdb 2015-04-07 01:20:55 -07:00
Samuel ROZE
d69494163a Supports to default ANSII styles 2015-03-31 14:55:54 +02:00
Tobias Haar
c65c0297b3 fixed typo in log statement 2015-03-20 09:47:24 +00:00
Blake Mesdag
532796a532 Sync logging should use repo.Owner not user.Login 2015-03-18 13:52:25 -04:00
Daniel Malon
447cf710af Add configurable assets folder
This adds a server-assets-folder configuration which allows overriding the assets bundled to the binary.
2015-02-26 22:22:16 +00:00
Andy Gardner
fbc701f22b Fixing formatting with gofmt 2015-02-26 10:22:06 +02:00
Andy Gardner
9ab07d7cd7 Including repo.role for non admins to allow rebuild button to display 2015-02-25 16:50:47 +02:00
Brad Rydzewski
293d503cad quick patch that lets someone with write access restart a build 2015-02-23 23:43:17 -08:00
Vsevolod Strukchinsky
83e03c1257 Do not request Read permission for public repo
Closes #882
2015-02-21 21:47:40 +05:00
Kirill Zaitsev
8d6a233744 Limit and Offset params for commits 2015-02-13 23:37:21 +03:00
Brad Rydzewski
baecced414 Merge pull request #866 from ulrichSchreiner/delrepo
Delete Repository in Drone DB
2015-02-12 10:53:04 -08:00
Andy Gardner
f64bb1df9b Implementing angular-moment to automatically update dates / durations 2015-02-12 12:18:12 +02:00
Ulrich Schreiner
46251ffa92 remove builtin log package and use standard 2015-02-12 08:41:04 +01:00
Ulrich Schreiner
aeb6895115 change the deactivate endpoint to HTTP-POST 2015-02-11 07:56:22 +01:00
Ulrich Schreiner
6158426511 Merge branch 'master' of github.com:drone/drone into delrepo 2015-02-11 07:24:01 +01:00
Cédric Krier
da2f04480c run go fmt ./... 2015-02-09 19:59:39 +01:00
Cédric Krier
a5218b38a6 Add STS header when TLS 2015-02-09 19:53:52 +01:00
Ulrich Schreiner
21f58ee2fb Merge branch 'master' into delrepo 2015-02-09 07:19:06 +01:00
Brad Rydzewski
66cf15d2d9 fixed rice issue again 2015-02-06 08:40:59 -08:00
Ulrich Schreiner
5f9887a49c Merge branch 'master' into delrepo 2015-02-06 10:30:10 +01:00
Brad Rydzewski
271974e98f fixed go.rice issue 2015-02-05 18:48:16 -08:00
Ulrich Schreiner
ae236a3d4d reworked to have two distinct REST handlers 2015-02-05 15:27:26 +01:00
Ulrich Schreiner
05b6dad81e Merge branch 'master' into delrepo 2015-02-05 14:47:35 +01:00
Ulrich Schreiner
bd8fb51c2a rework to delete the repository from the datastore if there are previous errors from the remote 2015-02-05 13:13:17 +01:00
Brad Rydzewski
64aeeff3ae Merge pull request #856 from Bugagazavr/gitlab-ouath
Refresh only expired tokens
2015-02-04 22:11:14 -08:00
Ulrich Schreiner
347aa24785 remove Printf output and do a real removal of the repository in the datastore 2015-02-04 15:13:23 +01:00
Ulrich Schreiner
0ed7ae7e3f impelement a delete of a repository 2015-02-04 14:42:24 +01:00
Kirill Zaitsev
6ca94970d6 Refresh only expired tokens 2015-02-04 13:18:46 +03:00
Kirill Zaitsev
a354aabbb0 Response as JSON instead plain text 2015-02-01 14:12:32 +03:00
Brad Rydzewski
2f76696226 Merge pull request #857 from andy-g/list_view
Adding a list-view layout
2015-01-29 21:40:18 -08:00
epipho
717bef75dd Adding test for get build number. Moved build number env build injection 2015-01-28 23:39:09 -05:00
epipho
5f8b026d14 All builds now have a per-repository monotonically increasing build number accessible via DRONE_BUILD_NUMBER
and CI_BUILD_NUMBER env variables.
2015-01-28 21:13:22 -05:00
Andy Gardner
5ea14a73af Adding a list-view layout 2015-01-28 14:15:20 +02:00
Brad Rydzewski
350d056d34 Merge pull request #832 from andy-g/live_commit_update
Make live updates to the commits (repo controller) without needing to reload
2015-01-26 22:40:46 -08:00
Kirill Zaitsev
d225181a0f Refresh tokens before any requests to remote 2015-01-27 02:33:27 +03:00
Kirill Zaitsev
f47ab27702 Gitlab oauth login 2015-01-23 22:28:24 +03:00
Andy Gardner
8f93561f04 Merge branch 'master' into live_commit_update 2015-01-23 12:31:12 +02:00
Andy Gardner
77e059ae98 Exclude Pull Requests from the branches.
Currently they are included because the AngularJS "filter" filter defaults to a substring match rather than a strict equality comparison, so filtering by '' includes everything.

https://docs.angularjs.org/api/ng/filter/filter
2015-01-22 11:33:10 +02:00
Andy Gardner
3e1b3c5871 Only live update for existing builds
The build message will only be displayed for new builds as the new item will not be auto updated, if the build has been auto-updated no build message will be displayed.
2015-01-22 10:53:10 +02:00
Andy Gardner
217cf0bc23 Make live updates to the commits without needing to reload 2015-01-20 15:13:53 +02:00
Brad Rydzewski
c8ac57c2ba Merge pull request #827 from bradrydzewski/master
partial fix for issue #812
2015-01-16 22:17:23 -08:00
Brad Rydzewski
b8b01c2db4 partial fix for issue #812 2015-01-16 22:11:36 -08:00
Matt Bostock
c48c6ebc88 Remove capability package
It's no longer used. This commit can always be reverted later if it's
needed again.
2015-01-16 22:05:23 +00:00
Matt Bostock
307aed12bc Move open registration setting into remote plugins
...so that it's possible to enable or disable open registration on a
per-remote basis.

For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.

The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.

This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.

Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
Brad Rydzewski
768b299543 fixed incorrect method for GetRepo in Drone client 2015-01-15 00:22:33 -08:00
Brad Rydzewski
dac460f488 Merge pull request #813 from bradrydzewski/master
fixed dependency issue w/ gopkg.in
2015-01-13 23:36:38 -08:00
Brad Rydzewski
59fe6dfbef Merge pull request #710 from nils-werner/usefulhomepage
Slightly more useful homepage
2015-01-13 21:58:52 -08:00
Brad Rydzewski
d0b722cc8b Insert and Update Users instead of generic Save function. Check ID != 0 2015-01-13 21:57:02 -08:00
Brad Rydzewski
1627d5f5da Merge pull request #802 from Bugagazavr/bintray
Bintray
2015-01-13 09:10:50 -08:00
Kirill Zaitsev
ef3fba75a9 Version from file 2015-01-12 20:00:36 +03:00
Brad Rydzewski
aed6f17db6 Merge pull request #803 from andy-g/fix_commit_grouping_by_branch
Fixing an issue with branch grouping due to substring matching
2015-01-12 08:10:42 -08:00
Andy Gardner
fc014768f1 Fixing an issue with branch grouping due to substring matching 2015-01-12 16:09:55 +02:00
Matt Bostock
6534bc79b4 Clarify 'sync running' message
Improve the grammar of the 'sync already runned' message to 'sync
already in progress', which should clarify what is happening when this
message is displayed.
2015-01-12 14:02:48 +00:00
ap4y
a6278f35fb Enforce word breaks in terminal output 2015-01-06 00:31:21 +13:00
Brad Rydzewski
baaaa4069e Merge remote-tracking branch 'upstream/master' 2014-12-30 10:58:59 -08:00
Brad Rydzewski
485ddb39a5 Merge remote-tracking branch 'upstream/master' 2014-12-30 10:35:50 -08:00
Brad Rydzewski
76fd8b0d66 only inject ssk key if private repository or pull request 2014-12-30 10:35:44 -08:00
Michael Nutt
0106a5e21d no longer need to limit Prior commit to those that have status Success or Failure 2014-12-30 13:29:38 -05:00
Michael Nutt
b94280c15c Change from notification after_success and after_failure to change
Also removes the extra db field; instead, just send Prior as part of the Request.

This reverts commit e8b993e7da.
2014-12-30 13:25:14 -05:00
Michael Nutt
e8b993e7da Add support for after_success and after_failure to email notifications
This allows you to restrict email notifications to only be sent after the build changes from success to failure or failure to success.  It errs on the side of sending the notification; if the build is in another state (hung, for instance) or there was no previous build on the branch the email will also be sent.

Since the notify plugin shouldn't really have any responsibility for querying the database to find the previous commit's status, we store it on the commit when we save it.
2014-12-30 11:37:57 -05:00
Michael Steinert
441de03fb9 Serve robots.txt from /
This change allows `robots.txt` to be served from the root URL, i.e.
https://drone.io/robots.txt, which is where [web crawlers will look for
it][1]. Previously this file was only served from `/static/robots.txt`.

[1]: http://www.robotstxt.org/robotstxt.html
2014-12-24 13:03:08 -06:00
Kirill Zaitsev
12baa7a81a Fix docker TLS, update readme and config file 2014-12-10 18:39:46 +03:00
Brad Rydzewski
61282888e1 improve permission logic 2014-11-21 22:41:32 -08:00
Christopher Brickley
270ce52b76 add gogs support 2014-11-18 21:50:05 -05:00
Nils Werner
dceb83564b Slightly more useful homepage
With more active repos and a more sensible view
of inactive repos
2014-11-17 23:04:58 +01:00
Brad Rydzewski
49a9c33dc9 Merge pull request #705 from bradrydzewski/master
ability to handle options requests
2014-11-17 13:44:28 -08:00
Nils Werner
fdfceedb7d Removed commit List User limit 2014-11-16 14:34:54 +01:00
Brad Rydzewski
2302d74465 ability to handle options requests 2014-11-15 22:15:22 -08:00
Nils Werner
ceae6d5bfe Use join instead of subquery 2014-11-15 16:10:44 +01:00
Brad Rydzewski
2ad8fe67bb updated to use new documentation link 2014-11-13 07:54:54 -08:00
Scott Ferguson
fa003af8cf Add feed route 2014-11-11 10:02:31 -06:00
Scott Ferguson
44518e2015 Wall feed 2014-11-11 10:02:18 -06:00
Brad Rydzewski
6165030ab5 prevent panic when replaying on closed channel 2014-11-10 21:13:18 -08:00
Brad Rydzewski
0ec2a65067 added docs to README 2014-11-10 00:24:47 -08:00