Commit Graph

260 Commits (fix-test-failure-14)

Author SHA1 Message Date
ShobhitSingh11 87381af2ac
fix: [CI-11840]: Added env variable to control the event of inbound w… (#3508)
Have added the env var "DRONE_INCOMING_WEBHOOK_EVENTS" (of type list of
string) to control the event in case of incoming webhook. If no such env
variable is provided then it will fallback to default behaviour. Below
are the test cases


- Case 1: When no env variable "DRONE_INCOMING_WEBHOOK_EVENTS" is
present.


https://github.com/harness/gitness/assets/139750384/ad228d61-2608-4756-abaa-b3397eba1fb7

-  Case 2: When Deployment event is missing from env var.


https://github.com/harness/gitness/assets/139750384/0faf2afc-9e0b-42f1-9327-8dc674ed112d

- Case 3: When Deployment, pull_request events are missing from env var.


https://github.com/harness/gitness/assets/139750384/29f40107-4b7a-4eae-afa8-464d78662e8b

- Case 4: When Deployment and push events are only present in env var.


https://github.com/harness/gitness/assets/139750384/b6cdec79-20bb-4d56-8fd0-f72cb9e57a8e


Tested with few more combinations as well.
2024-05-07 16:35:06 +01:00
Max Knee 94bcb869dc
Enable http metrics (#3459)
Adding config option to enable http metrics

---------

Signed-off-by: Max Knee <max.knee@nytimes.com>
2024-04-24 15:40:32 +01:00
Max Knee 3c37646f3a
add http prometheus metrics (#3432)
This will add metrics to http endpoints to measure latency and to see if
other parts of infra are working

This will close #2421

Signed-off-by: Max Knee <max.knee@nytimes.com>
2024-01-02 12:12:52 +00:00
zigler zhang 78dc8573a3 + sync gitea redirecturl config from gitee for customize login redirect url 2023-05-14 15:00:55 +08:00
Evan Smith 8668d901d8
Make buffer for the cleanup reaper configurable (#3308) 2023-04-04 15:23:08 +01:00
Andrii Kasparevych 7a8c7e1d24
Make starlark size limit configurable (#3291) 2022-12-06 09:38:55 +00:00
kit101 a7bd561970
update discourse.drone.io to community.harness.io (#3261) 2022-09-13 11:08:08 +01:00
Endymion Wight b6053394ef
Added OAuth2 token refresher for Gitlab (#3215) 2022-06-14 10:46:35 +01:00
Brad Rydzewski 1de855eb61 remove default from DRONE_CONVERT_MULTI 2022-03-17 16:12:53 -07:00
Brad Rydzewski 62f1086680 feature flag to allow multiple conversion extensions 2022-03-17 14:51:48 -07:00
kit101 fab2899a2b Datadog add the tag of 'remote:gitee' 2021-12-27 08:44:19 +08:00
kit101 c9c1f82c7a
fixbug gitee provide refresher (#3168) 2021-12-19 12:45:19 +00:00
kit101 2b77d96600
Feat: implemented gitee client (#3156)
* Feature: implemented gitee client

implemented gitee client

* update Gitee struct

* inject netrc.Password when driver is gitee

* auto genarate gitee redirectURL

* update go-login and go-scm
2021-11-25 15:35:02 +00:00
Eoin McAfee 8a27f0f0e8
refactor create / find / delete end points for cards (#3159)
* refactor create / find / delete end points for cards
2021-11-12 10:23:08 +00:00
Eoin McAfee 85fd11c421 card api and db work to support new cards feature 2021-09-24 10:06:26 +01:00
Harri Avellan d50e89d411
Allow jsonnet imports in pipeline configuration (#3105) 2021-09-21 09:37:12 +01:00
TP Honey fcf9f8d246
Merge pull request #3129 from tphoney/DRON-119
(fix) remove unused jwt-go library
2021-09-08 17:18:31 +01:00
TP Honey 814bbc267d (fix) trim http/s prefixes from config hostnames 2021-09-07 13:35:58 +01:00
Phil Davis 8c24225240
Make starlark step limit configurable (#3134)
Define environment variable DRONE_STARLARK_STEP_LIMIT to some number to
override the default value.
2021-09-03 11:35:44 +01:00
TP Honey 2904b6f599 (fix) remove unused jwt-go library 2021-08-31 16:10:34 +01:00
Marko Gaćeša cf7d30a7f6 added more redis config env vars 2021-08-11 16:25:50 +02:00
Marko Gaćeša fb29636608 h/a stuff is !oss, simplified redis pubsub subscribe 2021-08-09 13:01:50 +02:00
Marko Gaćeša 3067a16de0 redis canceller 2021-08-02 18:47:58 +02:00
Marko Gaćeša b91d6c4b9b added redis implemenatation for core.LogStream 2021-08-02 13:51:47 +02:00
Marko Gaćeša 40d09839f7 pubsub: redis implementation 2021-07-22 15:03:57 +02:00
TP Honey 9159661212 (feat) maximum open DB connections is configurable 2021-06-08 11:10:42 +01:00
Eoin McAfee cb75a7383b revert back starlark converter name 2021-06-01 14:14:23 +01:00
Eoin McAfee 8b7933c116 starlark converter & parser created and working. Unit tests add & some moving around/refactoring of plugins. 2021-05-27 14:58:23 +01:00
Eoin McAfee 953961ce1f Update inject store to include template 2021-05-19 16:16:38 +01:00
Eoin McAfee 34bf7e9142 ran wire to generate DI for template store 2021-05-19 16:08:46 +01:00
Eoin McAfee 00b6d6e436 Initial api routes 2021-05-19 14:18:24 +01:00
Brad Rydzewski 04ec418c44 support optional convert plugin cache size 2021-05-14 14:06:47 -04:00
Brad Rydzewski 6b8abc32bf update login / register screens 2021-05-13 13:51:22 -04:00
Brad Rydzewski e44aae58b4 metrics sink update 2021-05-04 19:11:57 -04:00
Brad Rydzewski eaadd82a83 support for optional mixed-mode encryption 2021-05-04 18:59:03 -04:00
Brad Rydzewski 1fa3daca29 remove deprecated schedulers 2021-01-20 16:29:40 -05:00
Brad Rydzewski 276f984db3 enable simple starlark scripts in core 2020-11-20 08:56:47 -05:00
Brad Rydzewski 1cdeb5f84d fix timeout conflict 2020-09-15 17:38:32 -04:00
Brad Rydzewski b5a401be56 enable caching of remote config requests 2020-09-15 17:28:45 -04:00
Doug Simmons 677d7cc2f7 Add configurable timeout for config, convert, and validate plugins
Also run 'go fmt' on changed files
2020-08-28 12:04:08 -07:00
Brad Rydzewski 840f58dc7f re-assign repository ownership when user deleted or deactivated 2020-06-08 14:32:28 -04:00
Bradley Rydzewski 5e31db25cb enable reaper routine by default 2020-06-04 22:15:30 -04:00
Brad Rydzewski 73c84aec0c enable experimental private mode flag 2020-03-26 13:38:57 -07:00
cmj 74423bfacd Missing the strings library 2020-02-14 16:08:08 +08:00
cmj 3e74e30845 Fix bug when refresh gitea access token
When the URI has extra '/' in DRONE_GITEA_SERVER, the drone
	will not pull the repo since it cannot refresh the access token.
	The log in gitea shows the drone try to access '//login/oauth/access_token'

	Related to commit 5414bb75f
2020-02-14 16:06:58 +08:00
Oleksii Kursov b63c11cb3b Add default labels to all Nomad Drone Controller jobs on creation 2020-01-09 13:49:29 -08:00
Brad Rydzewski c42273084f add optional pprof endpoints 2019-12-29 17:59:42 -08:00
Brad Rydzewski 45a3181f50 use major version in image name 2019-12-13 08:14:10 -08:00
Brad Rydzewski f46941554c remove converter plugin memoize function 2019-11-20 16:04:01 -08:00
Toni Moreno af34ac8b18 add http.Client with skipverify option to oauth renew token method, fix #2876 2019-11-16 10:46:27 +01:00