Golang Plugin Development Guide
Plug-in development framework description
The plug-in can be packaged into a command line executable command. There is no requirement on the development framework. The following uses the demo plug-in as an example ** I. The overall structure of the sample plug-in code project is as follows:**
II. How to develop plug-ins:
See plugin-demo-golang Create plug-in code projects You are advised to manage plug-in codes in a unified manner. Generic open source plug-ins can be placed under ci-plugins
Implement plug-in functions
Specification:
III. How to package and publish:
Go to the plug-in code project directory
Pack
Create a new folder anywhere and name it as follows: release_pkg = ${your plugin id}_release
Copy the execution package produced in Step 2 to ${release_pkg}
Add the task.json file to the task.json file under ${release_pkg}. See the example.
task.json Example:
In the ${release_pkg} directory, type all files into a
zip
package Examplezip
package structure:
After packaging is complete, the plug-in workbench bill of lading is published, and the plug-in can be tested or released
Last updated