Jenkins - Configuration as Code VSCode extensionWhat does the plugin doThis plugin deals with the authentication and fetching of the JSON schema from a live Jenkins instance. It provides the base for validation of yaml files written to configure a Jenkins instance. How to use
User GuideIn order to enable validation we need to include it in the workspace settings. In order to do that
navigate to
You can specify a glob pattern as the value for schema.json which is the file name for the schema. This would apply the schema to all yaml files. eg: The following tasks can be done using VSCode: a) Auto completion (Ctrl + Space): Auto completes on all commands. b) Document Outlining (Ctrl + Shift + O): Provides the document outlining of all completed nodes in the file. Create a new file under the work directory called
The above yaml file is valid according to the schema and vscode should provide you with validation and autocompletion for the same. Feature Overview
How to Run Locally
SettingsOne can edit the settings in this window.
Extension ActivationThis is the window to activate the extension.
|