Commit graph

590 commits

Author SHA1 Message Date
Brad Rydzewski
4aac0bc4d6 re-use gated logic 2017-05-05 19:13:40 +02:00
Brad Rydzewski
4569b60f09 persist and compare yaml for gating 2017-05-05 18:59:37 +02:00
Brad Rydzewski
cb4f2f9a1d propogate hostname correctly 2017-05-05 16:40:54 +02:00
Jason Riddle
3a255230ec Add /api/metrics/prometheus endpoint 2017-04-27 16:49:28 -04:00
Brad Rydzewski
987f9a49d3 pwd 2017-04-21 17:31:13 +02:00
Brad Rydzewski
30b561636f make escalated plugins, volumes, networks configurable 2017-04-14 10:41:24 +02:00
Brad Rydzewski
0f13620d66 fix remote status on build completion 2017-04-12 19:56:30 +02:00
Brad Rydzewski
18bee1b84d added repo repair 2017-04-12 15:32:44 +02:00
Brad Rydzewski
5dfc61ca7e ability to update repo settings from cli 2017-04-12 14:12:21 +02:00
Brad Rydzewski
2f67f5f706 compare server and agent version for compatibility 2017-04-12 13:04:39 +02:00
Brad Rydzewski
f2d4cf7be5 update repo patch logic 2017-04-11 23:51:33 +02:00
Brad Rydzewski
8348c858ba wip enable pluggable secret and registry backends 2017-04-11 19:06:45 +02:00
Brad Rydzewski
6e244be920 improve secret match logic 2017-04-10 18:27:34 +02:00
Brad Rydzewski
489cdf2572 disable yaml change detecting / approval. not needed 2017-04-10 14:56:37 +02:00
Brad Rydzewski
4f4e3f2404 update how secrets provided to compiler 2017-04-10 13:08:12 +02:00
Brad Rydzewski
b10a074b57 implement compose secret syntax 2017-04-10 12:39:50 +02:00
Brad Rydzewski
4502e5a256 source registry secrets from db 2017-04-07 01:04:25 +09:00
Brad Rydzewski
55d4ccd64e add registry management 2017-04-06 21:51:01 +09:00
Brad Rydzewski
76006d28ac restart build by clearing prior procs and logs 2017-04-04 19:50:15 +09:00
Brad Rydzewski
16a07e660a enable granular step data for matrix 2017-04-04 18:30:06 +09:00
Brad Rydzewski
0daee76aa8 use separate log table 2017-04-03 18:34:37 +09:00
Brad Rydzewski
ec88661d9e refactor job to proc 2017-04-02 23:13:26 +09:00
Brad Rydzewski
6c11444de0 agent update build steps 2017-04-01 20:17:04 +09:00
Bo-Yi Wu
316a6ea454 fix: missing matrix env. 2017-03-21 22:30:01 +08:00
Brad Rydzewski
f0cbe62d81 load ui assets from filesystem 2017-03-20 23:51:41 +08:00
Brad Rydzewski
da1193734c only expose netrc when private repo 2017-03-19 17:07:21 +08:00
Brad Rydzewski
6246b32569 ability to customize yaml path 2017-03-19 16:44:57 +08:00
Brad Rydzewski
b100401e29 only force approval when secrets exposed 2017-03-18 23:40:12 +08:00
Brad Rydzewski
0795dce4ed added logging 2017-03-18 23:20:09 +08:00
Brad Rydzewski
130c623a35 compare yaml files 2017-03-18 19:25:53 +08:00
Brad Rydzewski
bfdd09c484 update github status on decline 2017-03-18 17:16:39 +08:00
Brad Rydzewski
e319aaff15 add reviewer fields, endpoints 2017-03-18 16:49:27 +08:00
Brad Rydzewski
6e735f28d8 ignore branch parse error 2017-03-16 19:00:56 +08:00
Brad Rydzewski
a95b118cb3 removed legacy code, updated cli 2017-03-16 18:14:02 +08:00
Brad Rydzewski
fc46a5be0a remove println from logs 2017-03-15 00:01:43 +08:00
Brad Rydzewski
395f0d52f9 enable restart 2017-03-14 23:56:22 +08:00
Brad Rydzewski
442e05a4e1 mask secrets, backport drone_ variables 2017-03-12 00:46:59 -08:00
Brad Rydzewski
b4c4e92b5b handle compiler or lint error 2017-03-10 02:58:25 -08:00
Brad Rydzewski
bb7453262a implement cancel function 2017-03-05 22:05:16 +11:00
Brad Rydzewski
623be6d830 put updated agent behind flag 2017-03-05 18:56:08 +11:00
Jacob McCann
c0fcc2dfed Don't allow "logging" messages after eof is received 2017-02-14 13:33:29 -06:00
Jan Niklas Hasse
0464ca1a44 Style Gogs login form 2017-02-10 09:02:11 +01:00
Jacob McCann
3cc49ef972 Send retain:remove before unsubscribing 2017-01-10 19:57:13 -06:00
Jacob McCann
b05c5f878e Add pprof endpoints 2016-12-17 07:53:38 -06:00
Marcus Ramberg
87be45063f Redirect to / after logout so you aren't automatically logged back in 2016-11-14 19:10:39 +01:00
Brad Rydzewski
58f84ced84 Merge pull request #1825 from donny-dont/feature/global_secrets
Implementing global secrets
2016-10-25 00:03:20 +02:00
Brad Rydzewski
db5b8e83ee Merge pull request #1830 from bradrydzewski/feature/mq
merge the feature/mq branch
2016-10-23 23:12:49 +02:00
Don
0852424cfe Implementing global secrets 2016-10-20 11:23:12 -07:00
Vaidas Jablonskis
284fca370e Add a reference to parent build on forks / deploys 2016-10-19 13:28:18 +01:00
Brad Rydzewski
17a77127b6 fixed git clone issue 2016-09-29 17:23:26 -04:00
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