Laszlo Fogas
105a0708fe
Refactor
2019-06-05 15:58:27 +02:00
Laszlo Fogas
dbfbd15238
Moved proc id changes closer to each other
2019-06-05 10:36:16 +02:00
Laszlo Fogas
435083db9e
Handling channel close
2019-06-05 10:08:49 +02:00
Laszlo Fogas
5cc4dca56f
Fetching multiple pipelines from Github, skipping some logic for now
2019-06-04 15:04:18 +02:00
Laszlo Fogas
df50b7ef40
Testing procBuilder
2019-06-01 13:02:26 +02:00
Laszlo Fogas
c9f2346c2c
Supporting multiple yamls in procBuilder
2019-06-01 13:02:26 +02:00
Laszlo Fogas
8199fe4a21
Fixed tests
2019-06-01 13:01:50 +02:00
Laszlo Fogas
4cce34d5bf
Moved things closer that belong together
2019-06-01 13:00:19 +02:00
Laszlo Fogas
ddabcde3e3
Factored to a better place
2019-06-01 12:52:30 +02:00
Laszlo Fogas
21d6552b4b
It's okay
2019-06-01 10:59:35 +02:00
Laszlo Fogas
8cec8ed0d5
Dryness
2019-06-01 10:27:28 +02:00
Laszlo Fogas
73aa46405a
Factored into file
2019-06-01 10:17:02 +02:00
Laszlo Fogas
43c44cfbd6
Factored into named functions
2019-06-01 10:08:41 +02:00
Laszlo Fogas
f25317599a
Unlimited
2019-06-01 09:45:20 +02:00
Laszlo Fogas
a4541ac901
Pull in cncd/* for simpler workflow
2019-04-06 15:44:04 +02:00
Laszlo Fogas
ca5817ffc2
Renamed package
2019-04-04 20:51:20 +02:00
Niall Sheridan
a55fa44589
Recover panic on closed channel
...
Related to #2480
Signed-off-by: Niall Sheridan <nsheridan@squarespace.com>
2018-11-14 11:27:41 +00:00
Brad Rydzewski
eb96456909
fix for #2480
2018-10-18 22:33:56 -07:00
Delfer
ea2c72b4b4
Add ability to restart build of any state
2018-04-06 17:54:24 +03:00
Brad Rydzewski
c78ce27d76
Merge pull request #2386 from fbcbarbosa/patch-1
...
Fix EventStreamSSE Memory Leak
2018-03-30 09:39:41 -07:00
Fernando Barbosa
00f72ef206
Fix EventStreamSSE Memory Leak
...
The `Config.Services.Pubsub.Subscribe` is being initialized with the global Gin Context. This causes the publisher object to [hang at line 58](https://github.com/cncd/pubsub/blob/master/pub.go#L58 ) and the goroutine remains opened indefinetly, which can be a source of memory leak.
Setting it to the locally defined ctx object correctly causes the goroutine to close when the function exits due to the deferred close.
See https://discourse.drone.io/t/memory-leak-on-drone-server/1884 for further information.
2018-03-27 19:19:22 -03:00
Thomas Boerger
398ca972bc
Fixed wrong variable name
2018-03-27 22:50:55 +02:00
Thomas Boerger
06ff6b50ed
Use specific token for prometheus metrics
2018-03-27 22:22:19 +02:00
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./...
2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7
add apache license header to files
2018-02-19 14:24:10 -08:00
Brad Rydzewski
cef20f0476
Merge pull request #2331 from jbrockopp/master
...
Build List Pagination
2018-02-19 14:01:33 -08:00
Brad Rydzewski
909053ba5b
Merge pull request #2244 from appleboy/fix2
...
Fix drone filter func
2018-02-19 13:01:05 -08:00
Yuki Yoshida
100f44c615
Fix typos
2018-02-16 17:21:01 +09:00
Jordan Brockopp
c84031e3e8
get page query param. set default of 1 if not set
2018-02-02 13:04:21 -06:00
Jordan Brockopp
a844ed53e9
allow repo admin to update build counter
2018-02-01 13:10:00 -06:00
Tony Li
2700a5eeaa
better format
2018-01-18 13:20:42 -05:00
Tony Li
e15e88584e
purge log w/ timestamp
2018-01-18 13:08:11 -05:00
Brad Rydzewski
8771fb53af
purged log placeholder to include username
2018-01-18 09:30:41 -08:00
Brad Rydzewski
cd0524e77e
endpoint to purge build logs
2018-01-18 09:26:28 -08:00
Elena Grahovac
296a4f1977
Log the exact error in case of 'error setting commit status'
2017-12-20 12:12:38 +01:00
Brad Rydzewski
1db7bde877
Merge pull request #2274 from appleboy/bugs
...
fix(drone-server): missing default branch name in metadata.
2017-12-06 13:43:20 -08:00
Brad Rydzewski
cf30898042
enable instance in when clause
2017-12-01 13:38:55 -08:00
Brad Rydzewski
970080e444
use a backoff when fetching the yaml
2017-12-01 09:22:30 -08:00
Bo-Yi Wu
b6a9645b31
fix(drone-server): missing default branch name in metadata.
2017-12-01 12:24:19 +08:00
Bo-Yi Wu
8ad98fa42b
add missing filter expr content.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-17 23:47:53 +08:00
Thomas Boerger
5abfd70c53
Fix procs.proc_started value if not set
2017-10-06 22:17:48 +02:00
Brad Rydzewski
bb8c569249
add healthz endpoint to server
2017-10-05 14:17:27 -07:00
Brad Rydzewski
9a0a6f924e
prevent per-user concurrent sync
2017-09-29 11:21:06 -07:00
Brad Rydzewski
ec6016062b
show loading status in user interface
2017-09-20 12:29:57 -07:00
Brad Rydzewski
2c9d50ccc6
should use correct status for killed
2017-09-15 09:04:21 -07:00
Brad Rydzewski
45357681a6
do not restart errored build
2017-09-14 15:33:12 -07:00
Matt Leung
820d07263b
Add server env var to specify .drone.yml location
...
Allow setting DRONE_REPO_CONFIG to override default location of .drone.yml
2017-09-12 17:06:12 -07:00
Brad Rydzewski
8795cf039f
reduce logfile upload limit
2017-09-12 09:03:32 -07:00
Brad Rydzewski
25c9b8050a
introduce limiter for planned refactoring
2017-09-11 10:22:45 -07:00
Brad Rydzewski
902523911e
remove unused websocket funcs
2017-09-10 17:48:12 -07:00
Brad Rydzewski
c95d2bf9f0
restart build will always fork; update sqlite
2017-09-10 17:45:42 -07:00
Brad Rydzewski
6cdf907c73
Merge pull request #2200 from praxist/build_filter_expression_parser
...
Add expression parser evaulator for build filter
2017-09-10 14:39:15 -07:00
Matt Leung
4c2ff78d20
Add expression parser evaulator for build filter
...
Vendor github.com/drone/expr
Vendor github.com/drone/expr/parse
2017-09-08 19:39:24 -07:00
Brad Rydzewski
b2dc32d5bb
Merge pull request #2192 from tonglil/fix-typo [ci skip]
...
Fix typo
2017-09-08 17:49:14 -07:00
Matt Leung
2892efedda
Add repo to task labels for build filtering
...
Add generated labels after user-defined labels to prevent tampering
2017-09-08 16:46:28 -07:00
Brad Rydzewski
49ea713a36
improve UI loader
2017-09-07 17:43:33 -07:00
Tony Li
81fe4b6520
fix typo
2017-09-05 17:09:12 -04:00
Brad Rydzewski
cf549e47c3
repo repair should update private status
2017-08-26 15:52:57 -07:00
Brad Rydzewski
47c1caa7cd
Merge pull request #2168 from josmo/rename-repo
...
Adding the ability to update the repo owner and name via patch with t…
2017-08-26 13:14:03 -07:00
Brad Rydzewski
7d245e7b27
fix route for proc logs
2017-08-24 17:03:11 -07:00
Brad Rydzewski
23a348b4f7
periodically ping client from server
2017-08-22 08:49:44 -07:00
Joachim Hill-Grannec
06bffddf96
remove lingering visibility
2017-08-21 18:52:09 -04:00
Joachim Hill-Grannec
f54175de91
Made ResetVisibility and ParseRepo generic.
...
Validate new from repo has admin rights
2017-08-21 18:49:09 -04:00
Joachim Hill-Grannec
cee90e93aa
Update to create move endpoint to allow changing the repo name
2017-08-21 17:56:37 -04:00
Joachim Hill-Grannec
6c386b18a6
Update to add visibility and isPrivate from the rename
2017-08-21 15:56:44 -04:00
Joachim Hill-Grannec
1260a829d0
Merge branch 'master' into rename-repo
2017-08-21 13:13:55 -04:00
Joachim Hill-Grannec
10b47c69e4
custom session expiration
2017-08-17 12:50:44 -07:00
Joachim Hill-Grannec
c30198e412
Adding Environment variable to configure the session expiration
2017-08-17 12:50:31 -07:00
Joachim Hill-Grannec
4fab997871
Adding the ability to update the repo owner and name via patch with the owner and name props
2017-08-16 16:21:13 -07:00
Joachim Hill-Grannec
a848f3e793
allow in a patch update to change the build number if the user is an admin
2017-08-12 17:01:10 -07:00
Brad Rydzewski
ef4ed73179
fix default workspace path
2017-08-04 16:17:16 -04:00
Brad Rydzewski
5172b974a3
update index template
2017-08-02 16:49:00 -04:00
Brad Rydzewski
60cd607450
capture file metadata
2017-08-02 16:04:00 -04:00
Brad Rydzewski
7a4879c3e4
ability to force kill zombie builds
2017-08-01 12:57:01 -04:00
Brad Rydzewski
241d994a26
abstract the user interface
2017-07-31 15:15:05 -04:00
Brad Rydzewski
bcdd5c9d06
implement file endpoints
2017-07-27 13:06:24 -04:00
Brad Rydzewski
825dc630b9
return files/artifacts with build
2017-07-26 17:58:44 -04:00
Brad Rydzewski
aadcde2b2c
Merge pull request #2142 from bradrydzewski/master
...
fix issue #2138
2017-07-25 14:01:28 -04:00
Brad Rydzewski
162d9b3a67
fix issue #2138
2017-07-25 13:57:13 -04:00
Brad Rydzewski
5e735c2632
improve experimental quic setup
2017-07-24 21:46:00 -04:00
Brad Rydzewski
441a015ca8
serve logs with sse; update acme pkg
2017-07-24 15:57:07 -04:00
Brad Rydzewski
39251a85a9
removed unused and broken packages
2017-07-24 13:23:22 -04:00
Brad Rydzewski
c3732041d5
refresh repo info on activation
2017-07-21 11:53:11 -04:00
Brad Rydzewski
eaa6d41699
pass agent hostname to all rpc calls
2017-07-20 12:21:15 -04:00
Brad Rydzewski
1c01cd3612
Merge remote-tracking branch 'origin'
2017-07-19 23:07:45 -04:00
Brad Rydzewski
9720337655
set machine on proc update
2017-07-19 23:07:29 -04:00
Brad Rydzewski
61fa5ff08d
Merge pull request #2125 from bradrydzewski/master
...
Pass agent hostname to server and persist
2017-07-19 22:46:43 -04:00
Brad Rydzewski
250b048b22
pass agent hostname to server and persist
2017-07-19 17:46:03 -04:00
execjosh
1beaab12e8
Escape newlines in env var substitution
2017-07-19 19:39:36 +09:00
Brad Rydzewski
39b74e172e
improve local UI testing and ability for pluggable UI
2017-07-18 14:20:19 -04:00
Brad Rydzewski
c867bcaf3c
add sse for user event feed
2017-07-18 12:27:20 -04:00
Brad Rydzewski
631cd10033
username validation fixes #1418
2017-07-17 00:01:35 -04:00
Brad Rydzewski
d5200ad8b3
improve flush capability during sync
2017-07-16 13:37:16 -04:00
Brad Rydzewski
b078f1abc9
enable new polymer user interface
2017-07-16 12:27:01 -04:00
Brad Rydzewski
35e0ee2e5f
implement sync logic
2017-07-14 15:58:38 -04:00
Brad Rydzewski
7008e79c9c
ability to server website from disk
2017-06-30 14:39:25 -04:00
Brad Rydzewski
aed567a71e
initial work to enable grpc
2017-06-28 13:21:22 -04:00
Brad Rydzewski
ec9171cead
inject globals
2017-06-26 15:27:53 -04:00
Jacob McCann
daa23ce673
Allow specifying limits for pipeline steps from server config ( #2085 )
2017-06-24 08:16:16 -04:00
Brad Rydzewski
3ed811644f
fixes #1523 to ensure json-file driver ( #2083 )
2017-06-22 15:11:05 -04:00
Brad Rydzewski
62876d6ad9
bump version to 0.7
2017-05-24 16:45:56 +02:00
Brad Rydzewski
076dc0c3b9
fix todo for missing env variables from api
2017-05-23 20:08:06 +02:00
Brad Rydzewski
8a62c626bd
cleanup visibility verification logic
2017-05-23 00:54:04 +02:00
Brad Rydzewski
b1cbe65985
use visibility to alter permissions
2017-05-23 00:44:58 +02:00
Brad Rydzewski
108e3fe93b
update secret order of operations
2017-05-19 23:36:08 +02:00
Brad Rydzewski
833b5af087
fixes #914
2017-05-14 19:57:38 +02:00
Lucas Lara
c1b500665f
Expose parent build number
2017-05-12 21:31:08 +02:00
Brad Rydzewski
823175605f
Merge remote-tracking branch 'origin/master'
2017-05-12 16:06:56 +02:00
Brad Rydzewski
ccb28d0d74
commit embedded templates
2017-05-12 16:06:01 +02:00
Thomas Boerger
86ca01561b
Use proper random container name
2017-05-12 15:07:01 +02:00
Brad Rydzewski
3a64aa4cf2
simplify gating logic
2017-05-05 20:05:42 +02:00
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