Commit Graph

239 Commits (dummy-branch)

Author SHA1 Message Date
Andrii Kasparevych 7a8c7e1d24
Make starlark size limit configurable (#3291) 2022-12-06 09:38:55 +00:00
Staffan Selander 82a7b113ed
Template converter, don't skip .yaml extension. (#3242) 2022-08-01 10:06:16 +01:00
TP Honey 2a70ce51cc (maint) fix starlark/jsonnet tests on windows 2022-06-14 11:47:36 +01:00
TP Honey 784c2e9e26 (maint) fix unit tests so they pass on windows 2022-06-13 17:46:57 +01:00
Eoin McAfee 8cdafdf367 add unit test for comments in template file 2022-05-30 16:09:20 +01:00
Brad Rydzewski 62f1086680 feature flag to allow multiple conversion extensions 2022-03-17 14:51:48 -07:00
Brad Rydzewski 7b42cd9bbd add user token to extension payload 2022-03-16 09:37:25 -07:00
Brad Rydzewski 0c087df430
update admission code comments [ci skip] 2021-10-01 14:04:15 -04:00
Brad Rydzewski e4cfd4bb0b
update admission code comments [ci skip] 2021-10-01 14:01:48 -04:00
Harri Avellan d50e89d411
Allow jsonnet imports in pipeline configuration (#3105) 2021-09-21 09:37:12 +01:00
Phil Davis b072d38a63
Fix stepLimit param in Starlark and Template OSS code 2021-09-13 11:12:18 +05:45
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
Eoin McAfee e8fb0cfca6
fix templating reg expression to match if .drone.yml contains --- characters (#3131)
* issue with regular expression for templates not picking up --- in drone.yml file
2021-09-01 15:06:03 +01:00
Eoin McAfee 352eff9062
add check on template extension type - throw error if invalid (#3128)
* add check on template extension type - throw error if invalid
2021-08-31 15:51:39 +01:00
Eoin McAfee 12808aadbe add support for yaml templates 2021-08-24 13:20:44 +01:00
Eoin McAfee 8ca78c0738 fix issue where map changes order therefore test randomly fails 2021-08-03 10:51:39 +01:00
Eoin McAfee 1ebfe95277
Add support for nested data objects within templates (#3110)
* Add support for nested data objects within templates
2021-08-02 17:23:02 +01:00
Marko Gaćeša a6f931e697
Merge branch 'master' into master 2021-06-29 11:21:05 +02:00
Eoin McAfee 0d750b1b9a
Merge pull request #3082 from tkushnir/add-build-debug
Add ctx.build.debug boolean
2021-06-22 10:23:30 +01:00
TP Honey 44f5cc2dbf
Merge pull request #3088 from phil-davis/typo-fixes
Fix various typos
2021-06-22 10:20:17 +01:00
Eoin McAfee 9a763682f9 handle error properly if template doesn't exist in the db 2021-06-17 10:19:51 +01:00
Timofei Kushnir 1c04be5916 Add ctx.build.debug boolean 2021-06-17 07:06:10 +03:00
Phil Davis c7e03b6251
Fix various typos 2021-06-10 08:19:00 +05:45
Eoin McAfee 460df004a7 fix broken test - check build/repo object is not nil 2021-06-07 10:27:45 +01:00
Eoin McAfee cfa3a20395 pass repo & build parameters into jsonet conversion 2021-06-04 16:01:14 +01:00
Eoin McAfee 1655fadc4a fixing oss build issue with new feature templates 2021-06-04 09:59:46 +01:00
Eoin McAfee afb5e35d2e another import grouping change. 2021-06-03 14:20:28 +01:00
Eoin McAfee 6cec8b3ee0 tech qa refactor for looping through data inputs 2021-06-03 14:17:39 +01:00
Eoin McAfee 61356c4344 fix import groupings 2021-06-03 14:15:41 +01:00
Eoin McAfee 65e5edddc3 add jsonnet support for build templates 2021-06-03 14:06:57 +01:00
Eoin McAfee 9dc11200d7 Add unique and indexes to db scripts on namespace. Code refactor in conversion files & grouping drone imports 2021-06-02 11:59:39 +01:00
Eoin McAfee a3a4e7494c Fix broken test caused by adding a new line to test file. 2021-06-01 16:29:14 +01:00
Eoin McAfee a0b83140fe Add line space at end of test files 2021-06-01 14:23:06 +01:00
Eoin McAfee cb75a7383b revert back starlark converter name 2021-06-01 14:14:23 +01:00
Eoin McAfee 31867a9261 group imports 2021-06-01 10:29:58 +01:00
Eoin McAfee 88a5a8e796 Tech QA Feedback & add support for organization level templates 2021-05-28 16:59:00 +01:00
Eoin McAfee a7ef135403 Small bug fix - renaming converter back to template 2021-05-27 15:18:21 +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
Brad Rydzewski 04ec418c44 support optional convert plugin cache size 2021-05-14 14:06:47 -04:00
Shubhendra Singh Chauhan f952383838
- Remove unnecessary wrapping of function call
- Remove unnecessary use of slice

- Replace use of HTTP codes with constants
2021-02-13 13:45:38 +05:30
Brad Rydzewski 276f984db3 enable simple starlark scripts in core 2020-11-20 08:56:47 -05:00
Brad Rydzewski 48e34aae32
Merge pull request #3027 from foosinn/ossfix-memoize
fix oss build: wrong type for Memoize parameter and return value
2020-10-10 11:03:27 -04:00
Brad Rydzewski e218e0149a include build.created date in cache key 2020-10-08 19:33:33 -04:00
Stefan Schwarz 8f32f44f9e fix oss build: wrong type for Memoize parameter and return value 2020-10-08 17:39:56 +02: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 e5dc5c73c4 support for skipped or blocked pipelines if validation fails 2020-08-26 15:11:02 -04:00
Florian Klink 0239d0474a
plugin/converter/starlark.go: fix comment
This actually is a starlark file, not a jsonnet file.
2020-05-26 14:37:10 +02:00
Brad Rydzewski f1dd01e50c re-use config and convert plugin clients 2020-01-03 17:53:47 -08:00