The following examples illustrate how to use this plugin to integrate Octopus Deploy with CloudBees CD/RO to deploy and release applications.
Deploy and release applications
This example shows how to deploy and release applications. To deploy and release applications, you must:
Configure Octopus Deploy
You must first configure Octopus Deploy to prepare the deployment.
For a deployment example, refer to the Octopus Deploy HTML and JavaScript applications example. |
To configure Octopus Deploy:
-
Create an API key in Octopus Deploy. For more information, refer to How to Create an API Key.
-
Configure an environment in Octopus Deploy. For more information, refer to Configure Runbook Environments.
-
Upload the package to the built-in Octopus repository. For more information, refer to Built-in Octopus repository.
-
Add the deployment target. For more information, refer to Add deployment targets.
-
Create the project. For more information, refer to Projects.
Create a release task
After configuring Octopus Deploy, you must create a release task in CloudBees CD/RO.
To create a release task:
-
In CloudBees CD/RO, create a plugin configuration. For more information, refer to Create Octopus Deploy plugin configurations.
-
Create a new pipeline. For more information, refer to Create a pipeline.
-
For the Pipeline stage, select Add task.
-
Give the new task a name, and then select Define.
-
For the Task type, select Plugin.
-
For the Plugin, select EC-OctopusDeploy.
-
For the Procedure, select Create Or Update Release.
-
Select Input parameters.
-
In the Configuration name field, add the EC-OctopusDeploy plugin configuration that you created.
-
Specify the parameters, as required for your project. For more information, refer to Create Or Update Release.
Create a deploy task
After creating the release task, you must create a deploy task.
-
For the Pipeline stage, select Add task.
-
Give the new task a name, and then select Define.
-
For the Task type, select Plugin.
-
For the Plugin, select EC-OctopusDeploy.
-
For the Procedure, select Deploy Release.
-
Select Input parameters.
-
In the Configuration name field, add the EC-OctopusDeploy plugin configuration that you created.
-
Specify the parameters, as required for your project. For more information, refer to Deploy Release.
-
Run the pipeline. The release is deployed to Octopus Deploy.