The SpringStagePlugin, creates a custom pipeline stage using Spring.
This is for demo only and not meant to be used in a production environment.
- Run
./gradlew releaseBundle - Put the
/build/distributions/<project>-<version>.zipinto the configured plugins location for your service. - Configure the Spinnaker service. Put the following in the service yml to enable the plugin and configure the extension:
spinnaker:
extensibility:
plugins:
Armory.RandomWaitPlugin:
enabled: true
config:
defaultMaxWaitTime: 60
Or use the examplePluginRepository to avoid copying the plugin .zip artifact.
See the Plugin Users Guide and the pf4jStagePlugin Deployment Example.
To debug the random-wait-orca server component inside a Spinnaker service (like Orca) using IntelliJ Idea follow these steps:
- Run
./gradlew releaseBundlein the plugin project. - Copy the generated
.plugin-reffile underbuildin the plugin project submodule for the service to thepluginsdirectory under root in the Spinnaker service that will use the plugin . - Link the plugin project to the service project in IntelliJ (from the service project use the
+button in the Gradle tab and select the plugin build.gradle). - Configure the Spinnaker service the same way specified above.
- Create a new IntelliJ run configuration for the service that has the VM option
-Dpf4j.mode=developmentand does aBuild Projectbefore launch. - Debug away...
See the Test a Pipeline Stage Plugin guide for a detailed walkthrough of setting up a plugin local testing environment on your workstation.
- Intro to Spinnaker Plugins, 2020 April Spinnaker Gardening Days
- Plugins Training Workshop, 2020 July Spinnaker Gardening Days
- How to build a PLUGIN: Building the frontend for a Spinnaker-native custom stage
- How to build a PLUGIN: Creating a Spinnaker-native custom stage
- Backend Plugin Development
- How to build a PLUGIN: The build process for a Spinnaker plugin
- How to build a PLUGIN: Delivering a plugin to your Spinnaker environment