configuration-as-code-plugin icon indicating copy to clipboard operation
configuration-as-code-plugin copied to clipboard

[feature] linter

Open victorsalaun opened this issue 7 years ago • 3 comments

When reloading the configuration file Jenkins can become unstable or worse not working anymore du to unrecognised properties.

It should be great to add a linter page that by copy pasting a config file checks the properties on the current Jenkins instance without applying them nor saving.

Also I suggest to use the linter when the reload is called manually using the button and when Jenkins is starting before applying the configuration.

victorsalaun avatar Jun 07 '18 15:06 victorsalaun

Would be nice. Generally I would prefer to have a REST API for that an maybe a Maven Plugin which allows checking it against a running instance or against a bundled Mock instance

oleg-nenashev avatar Jun 11 '18 09:06 oleg-nenashev

a linter is part of the tooling we are considering as follow-up JEP for JEP-201 this one could detect use of deprecated / restricted attributes and give guidance on how to fix this (by listing valid attribute, I don't think we can offer much as @Deprecated doesn't offer a link to replacement code.

ndeloof avatar Jul 03 '18 06:07 ndeloof

I wrote an issue that is related to this: Refactor ConfigurationAsCode to enable clear error messages #488

tomasbjerre avatar Aug 30 '18 08:08 tomasbjerre