Jenkins - Configuration as Code VSCode extension
What does the plugin do
This 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
In order to enable validation we need to include it in the workspace settings. In order to do that
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.
How to Run Locally
One can edit the settings in this window.
This is the window to activate the extension.