Skip to content

electric-cloud-community/BringYourOwnDeployerPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BringYourOwnDeployerPlugin

Used to provide details about artifacts being deployed and undeploy using CloudBees CD/RO's third-party inventory interface.

Description

To demonstrate CloudBees CD/RO's third-party inventory interface, this plugin includes two procedures:

  • Deploy
  • Undeploy

These procedures store information about artifacts into the ec_deployment_artifacts property of your job in predefined format based on your JSON input.

Deploying BringYourOwnDeployerPlugin

For each release of this plugin, a .jar is included that can be uploaded to your CloudBees CD/RO instance following the instructions for Installing a plugin from a file. Once your plugin's .jar has been uploaded, you need to configure the plugin for use.

Plugin configurations

Plugin configurations are sets of parameters that can be applied across some, or all, of the plugin procedures. They can reduce the repetition of common values, create predefined parameter sets, and securely store credentials. Each configuration is given a unique name that is entered in the designated parameter for the plugin procedures that use them.

Creating plugin configurations

To create plugin configurations in CloudBees CD/RO, complete the following steps:

  1. Navigate to DevOps Essentials Plugin Management Plugin configurations.
  2. Select Add plugin configuration to create a new configuration.
  3. In the New Configuration window, specify a Name for the configuration.
  4. Select the Project that the configuration belongs to.
  5. Optionally, add a Description for the configuration.
  6. Select the appropriate Plugin for the configuration.
  7. Configure the parameters per the descriptions below.

Example of deploy procedure that sets needed job properties for third-party artifacts.

Deploy Procedure parameters

Parameter Description
Deployment Artifacts Required. JSON input with appropriate format containing information about your third-party artifacts.

Example:

{
  "deploymentSystem": "name of the 3rd-party tool, e.g., Ansible, G3, Gitlab",
  "deploymentUrl": "Url for this deployment job in the 3rd-party tool",
  "artifacts": [
    {
      "artifactName": "artifact1",
      "artifactVersion": "1.2.5",
      "artifactUrl": "Url to the artifact",
      "additionalDetails": {
        "deploymentTargets": "target1, target2",
        "detail1": "value1",
        "detail2": "value2"
      }
    },
    {
      "artifactName": "artifact2",
      "artifactVersion": "3.2.6",
      "artifactUrl": "Url to the artifact",
      "additionalDetails": {
        "deploymentTargets": "target2, target4",
        "detail1": "value1",
        "detail2": "value2"
      }
    }
  ]
}

Any undeploy procedure

Undeploy Procedure parameters

Parameter Description
Deployment Artifacts Required. JSON input with appropriate format containing information about your third-party artifacts.

Example:

      {
  "deploymentSystem": "Some3rdPartyTool",
  "deploymentUrl": "https://repository.sonatype.org/service/local/repositories/atlassian-maven-external/content/org/apache/tomcat/apache-tomcat/",
  "artifacts": [
    "artifact1",
    "artifact2",
    "artifact3",
    "artifact1x",
    "artifact2x",
    "artifact3x"
  ]
}

BringYourOwnDeployerPlugin 0.0.2

  • Initial release version

BringYourOwnDeployerPlugin 0.0.1

  • Initial draft version

About

Demo Plugin to demonstrate the third party inventory interface

Resources

Stars

Watchers

Forks

Packages

No packages published