Commit graph

6176 commits

Author SHA1 Message Date
Kirill Zaitsev
4b3eaec70c Since 7.10 token life unlimited 2015-04-25 02:19:28 +03:00
Brad Rydzewski
da350989d3 fixed minor queue glitches 2015-04-24 14:25:03 -07:00
Brad Rydzewski
39e7ce9840 add error when removing item not exists 2015-04-23 16:32:46 -07:00
Brad Rydzewski
1d1dff0dcf added unit tests for queue 2015-04-23 16:22:23 -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
Daniel Oliveira
0579df7584 repo_test.go conflict resolution 2015-04-23 11:28:03 -06:00
Daniel Oliveira
f74ca63359 Disabled SetBuildTask() test until we get the nil ptr crash addressed 2015-04-23 10:04:31 -06:00
Daniel Oliveira
d13c1caebf About this commit:
1. server/builds.go:92 uses SetStatus().
2. The other APIs we talked about: Status(), StatusList(), we were able to move out.
3. The repo_del_test.go code merge into repo_test.go
4. Unit tests for the other build APIs added.
   - We are facing a crash in: github.com/drone/drone/datastore/bolt.(*DB).SetBuildTask(0xc208056080, 0x5e15d0, 0x15, 0x1, 0xc208036940, 0x0, 0x0)
     which seems to be related to the note in: build.go:207 (// TODO check index to prevent nil pointer / panic)
5. With these new tests we get over 86% plus test cover for bolt package.
2015-04-22 19:49:16 -06:00
Brad Rydzewski
c0f5aec77b Merge pull request #987 from benschumacher/cleanup-drone/drone#959
Fix error handling, remove unused bucketBuildTasks
2015-04-22 11:40:31 -07:00
Ben Schumacher
4362adf78b Fix error handling, remove unused bucketBuildTasks 2015-04-22 10:50:45 -06:00
Brad Rydzewski
d2776bc990 added code for remote queue plugin 2015-04-22 01:00:15 -07:00
Daniel Oliveira
6d5255aa75 Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-21 20:42:13 -06: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
0cd5dc1a5b Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-21 13:09:02 -07:00
Brad Rydzewski
85e17393fa some stubs for build config 2015-04-21 13:08:56 -07:00
Brad Rydzewski
f0ec8c33b6 Merge pull request #986 from oliveiradan/bolt
Unit Tests for: repo_test.go, task_test.go
2015-04-21 10:25:59 -07:00
Daniel Oliveira
3f2d72daf0 Code changes related to PR #986 and Issue #984. Comments deleted 2015-04-20 19:57:50 -06:00
Daniel Oliveira
09d5c6f011 Code changes related to PR #986 and Issue #984 2015-04-20 18:39:32 -06:00
Brad Rydzewski
2001719f7d Merge pull request #985 from benschumacher/bolt
Working on drone/drone#959
2015-04-20 15:56:17 -07:00
Ben Schumacher
38b939982a Working on drone/drone#959 2015-04-20 16:48:44 -06:00
Daniel Oliveira
627f8df98d Unit Tests for: repo_test.go, task_test.go 2015-04-20 15:01:48 -06:00
Vaidas Jablonskis
009e8a1dce publish/docker: login should happen early
This fixes an issue where base image which drone is using to build an
image for publishing comes from a private repo.
2015-04-17 16:21:09 +01:00
Brad Rydzewski
af9c1e9bd7 Merge pull request #973 from 907th/hipchat_api_v2
Use HipChat API ver 2 for notifications
2015-04-16 23:38:18 -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
5816f1156e add yaml parser, build execution code. not yet hooked up 2015-04-16 00:10:17 -07:00
Brad Rydzewski
cd18645784 contemplating nested storage of tasks and statuses 2015-04-15 23:45:24 -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
Alexey Chernenkov
d9f855e5b6 Try to build with the latest Docker sources 2015-04-14 12:07:04 +05:00
Alexey Chernenkov
9bc3a25a5e Fix dependency: github.com/docker/docker/utils was moved to pkg/jsonmessage 2015-04-14 11:54:41 +05:00
Alexey Chernenkov
8bcb5d9c52 Use HipChat notification API ver 2
HipChat API v1 is deprecated, but github.com/andybons/hipchat (used by Drone) does not support v2.
So I've implemented v2 using native http.PostForm.
2015-04-14 11:49:35 +05:00
Brad Rydzewski
1ad5e3f597 repo subscriptions functioning in datastore w/ index 2015-04-13 21:39:05 -07:00
Brad Rydzewski
5e7c4e2573 cleaned up a couple of the db functions 2015-04-13 19:25:11 -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
768b6c7e48 removed User.Tokens temporary index 2015-04-13 16:00:13 -07:00
Brad Rydzewski
a50d972d8e push common index functions to util.go for reuse 2015-04-13 15:51:15 -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